Links that I referred to before running Elasticsearch 7.7 on Java 11

Operation check environment

Reference URL

** 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/

Plugin installation

$ ./elasticsearch-plugin install analysis-icu
-> Installing analysis-icu
-> Downloading analysis-icu from elastic
[=================================================] 100%  
-> Installed analysis-icu
$ ./elasticsearch-plugin install analysis-kuromoji

Check installed plugins

$ ./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

Delete

elasticsearch-plugin remove analysis-icu

re-install

elasticsearch-plugin install analysis-icu

Recommended Posts

Links that I referred to before running Elasticsearch 7.7 on Java 11
I tried running Java on a Mac terminal
Introducing New Relic to Java apps running on Heroku
I want to implement it additionally while using kotlin on a site running Java
I have summarized the articles that programming beginners referred to.
[Java] I tried to make a rock-paper-scissors game that beginners can run on the console.
A story that I struggled to challenge a competition professional with Java
I want to use swipeback on a screen that uses XLPagerTabStrip
I just want to write Java using Eclipse on my Mac
I tried to display the calendar on the Eclipse console using Java.
I tried to interact with Java
I tried to summarize Java learning (1)
I tried to summarize Java 8 now
[Introduction to Java] I tried to summarize the knowledge that I think is essential
Avoid Java encoding errors that occur when running FitGen.exe on Japanese Windows
How to check Java installed on Mac
I tried using Elasticsearch API in Java
I tried running Docker on Windows Server 2019
I tried to summarize Java lambda expressions
I want to display background-ground-image on heroku.
I want to install PHP 7.2 on Ubuntu 20.04.
How to switch Java versions on Mac
I want to stop Java updates altogether
I tried to build AdoptOpenjdk 11 on CentOS 7
I went to the Java Women's Club # 1
[* Java *] I went to JJUG CCC 2017 Fall
Steps to register Java files on GitHub
I want to play a GIF image on the Andorid app (Java, Kotlin)
I built a Java EE environment on AWS and tried running a web application
The story that I could not build after installing multiple Java on Windows