Elasticsearch7.4.2配置elasticsearch-analysis-dynamic-synonym

elasticsearch-analysis-dynamic-synonym Download: https://github.com/bells/elasticsearch-analysis-dynamic-synonym

The highest version elasticsearch-analysis-dynamic-synonym is 7.3.1, to be adapted Elasticsearch7.4.2, we need to change the code.

(1) The pom.xml file version number changed to 7.4.2

(2) change the version number, the code reload dependencies, dependency package after loading is complete, DynamicSynonymTokenFilterFactory.java file will be given a place, as shown in FIG.

(3) Cause a given parameter is less elasticsearch-7.4.2.jar package class CustomAnalyzer

CustomAnalyzer 7.3.1 version:

CustomAnalyzer the 7.4.2 version:

(4) modify the code to remove the first parameter

(5) perform mvn package

(6) Copy and unzip  target/releases/elasticsearch-analysis-dynamic-synonym-7.4.2.zip to your-es-root/plugins/dynamic-synonym
 

Released four original articles · won praise 0 · Views 29

Guess you like

Origin blog.csdn.net/huqiut/article/details/103979182