bells / elasticsearch-analysis-dynamic-synonym

The dynamic synonym plugin adds a synonym token filter that reloads the synonym file(local file or remote file) at given intervals (default 60s).
369 stars 181 forks source link

How do I make it compatible with elasticsearch 7.17.12 version? #118

Closed julius-ban closed 1 year ago

julius-ban commented 1 year ago

We are currently migrating from the ES 7.0 version to ES 7.17.12. But there was an error in the index. How do I modify the current master version pom.xml file for normal use? Thank you. 我们目前正在从 ES 7.0 版本迁移到 ES 7.17.12。 但是索引中有一个错误。 如何修改当前的主版本 pom.xml 文件以正常使用? 谢谢大家

If you force it to float, you may get the following error.... 如果你强迫它浮动,你可能会得到以下错误

Caused by: java.lang.IllegalArgumentException: could not reload local synonyms file to build synonyms at com.bellszhu.elasticsearch.plugin.synonym.analysis.LocalSynonymFile.reloadSynonymMap(LocalSynonymFile.java:72) ~[?:?] at com.bellszhu.elasticsearch.plugin.synonym.analysis.DynamicSynonymTokenFilterFactory.buildSynonyms(DynamicSynonymTokenFilterFactory.java:163) ~[?:?]

Or is there a way to get this error if I change it to analysis-common 7.17.9 in the pom.xml file? 或者,如果我将其更改为 pom.xml 文件中的 analysis-common 7.17.9,是否有方法获得此错误?

Failed to read artifact descriptor for org.codelibs.elasticsearch.module:analysis-common:jar:7.17.9: Could not transfer artifact org.codelibs.elasticsearch.module:analysis-common:pom:7.17.9 from/to codelibs.org (http://maven.codelibs.org/): Transfer failed for http://maven.codelibs.org/org/codelibs/elasticsearch/module/analysis-common/7.17.9/analysis-common-7.17.9.pom: Connect to maven.codelibs.org:80 [maven.codelibs.org/160.251.123.118] failed: Connection timed out: connect -> [Help 1]