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).
372 stars 182 forks source link

ES6.5.1版本使用插件后,后台看到更新,但实际使用时不见效果 #42

Closed zhengw77 closed 5 years ago

zhengw77 commented 5 years ago

ES6.5.1版本使用插件后,后台看到更新,但实际使用时不见效果,是什么原因,怎么解决?谢谢。 { "number_of_shards" : 1, "number_of_replicas" : 0, "analysis" : { "analyzer" : { "ik_syno_smart" : { "type" : "custom", "tokenizer" : "ik_smart", "filter" : ["my_stop_filter", "my_syno_filter"], "char_filter" : ["my_char_filter"] }, "ik_syno_max_word" : { "type" : "custom", "tokenizer" : "ik_max_word", "filter" : ["my_syno_filter", "my_stop_filter"], "char_filter" : ["my_char_filter"] } }, "filter" : { "my_stop_filter" : { "type" : "stop", "stopwords" : [" "] }, "my_syno_filter" : { "type" : "dynamic_synonym", "synonyms_path" : "analysis/synonyms.txt", "interval": 30 } }, "char_filter" : { "my_char_filter" : { "type" : "mapping", "mappings" : ["| => |"] } } } }

TerryLam2010 commented 4 years ago

你这个是怎么解决的?