** Environment construction related **
Register the repository with yum so that the version can be unified for each environment (in CentOS8, use dnf)
https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html https://qiita.com/inouet/items/6276c5a08c4fe5eecdb5
https://qiita.com/tikeda0924/items/d9ffd43e18da3a64681d https://gitya107.hatenablog.com/entry/2018/06/15/170334
Version Elasticsearch 7.7 (current) * As of May 15, 2020
https://www.elastic.co/jp/support/eol
Plugin
--Insert Kuromoji, ICU for Japanese support https://qiita.com/shin_hayata/items/41c07923dbf58f13eec4
The version of the plug-in must match the version of the ES itself. (For example, if ES is 7.5.2, kuromoji also needs v7.5.2) Plugins are installed using elasticsearch-plugin after es installation.
$ cd /usr/share/elasticsearch/bin/
$ ./elasticsearch-plugin install analysis-icu
-> Installing analysis-icu
-> Downloading analysis-icu from elastic
[=================================================] 100%
-> Installed analysis-icu
$ ./elasticsearch-plugin install analysis-kuromoji
$ ./elasticsearch-plugin list
-------------------------
analysis-icu
analysis-kuromoji
-------------------------
Transport Client is 7.from x to deprecated, 8.Because it is deleted by xUse RestHighLevelClient |
---|
Transport Client Deprecated in 7.0.0. The TransportClient is deprecated in favour of the Java High Level REST ClientandwillberemovedinElasticsearch8.0.Themigrationguide describes all the steps needed to migrate. 【reference】 https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/transport-client.html |
Mapping type is 7.x to deprecated, 8.Removed from x |
---|
Alternative method Indexing by document type Creating a custom type field https://www.elastic.co/guide/en/elasticsearch/reference/7.x/removal-of-types.html |
** Installation on CentOS ** https://qiita.com/m-eno/items/6f0d76bff0114e917ef0 https://qiita.com/kitfactory/items/9c2f990d87e33fab828a
** About Elasticsearch (details are organized) ** https://qiita.com/rjkuro/items/95f71ad522226dc381c8
** Index registration/Data registration ** https://qiita.com/miz21358/items/b8fc64eedb6b2dfe851f http://n-agetsuma.hatenablog.com/entry/2017/11/13/211310
https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-supported-apis.html https://k11i.biz/blog/2016/10/01/high-performance-jackson/
https://qiita.com/aoking_Ba/items/5927cca391def8bed61b
** Alias setting ** https://medium.com/hello-elasticsearch/elasticsearch-c8c9c711f40 https://www.elastic.co/guide/en/elasticsearch/client/java-rest/master/java-rest-high-update-aliases.html#java-rest-high-update-aliases-request
Analyzer https://tech-blog.rakus.co.jp/entry/20191002/elasticsearch
--Char filter ・ ・ ・ Preprocessing (option) --Tokenizer ・ ・ ・ Word division --Token filter ・ ・ ・ Post-processing (option)
→ It is necessary to make these three selections
http://pppurple.hatenablog.com/entry/2017/05/28/141143
** Mapping (schema definition) ** https://www.elastic.co/guide/en/elasticsearch/reference/7.7/mapping.html
** Search ** https://qiita.com/miz21358/items/3c287978f37c6de6487a https://qiita.com/aoking_Ba/items/aa5db11afa45e9718faf
https://dev.classmethod.jp/articles/es-02/ https://www.elastic.co/guide/en/elasticsearch/reference/current/full-text-queries.html
#Check all registered data POST /uedb-elasticsearch_ja_20204428214440/_search?pretty { "query": { "match_all": {} } } Tips
** Check version etc. **
curl localhost:9200/_nodes/plugins?pretty
https://blog.kozakana.net/2019/10/elasticsearch-confirmation-commands/
upgrade https://www.elastic.co/guide/en/elastic-stack/current/upgrading-elastic-stack.html#oss-stack-upgrade
Plugin needs to be removed and reinstalled separately
elasticsearch-plugin remove analysis-icu
elasticsearch-plugin install analysis-icu
Recommended Posts