我在elasticsearch.yml中配置了我的全局自定义分析器,这是我的配置:
All
然后我通过运行命令true
但是elasticsearch告诉我它找不到分析仪:
index :
analysis :
analyzer :
titleAnalyzer :
type : custom
tokenizer : ik_max_word
filter : [titleSynoymFilter, englishStemmerFilter]
filter :
titleSynoymFilter :
type : synonym
synonyms_path : ../analysis/title_synonym.txt
englishStemmerFilter :
type : stemmer
name : english
答案 0 :(得分:9)
如果您在根路径上调用/_analyze
找不到分析器,请尝试在路径上指定至少一个现有索引
$ echo 'A drop in the ocean'| http :5600/some_index/_analyze?analyzer=titleAnalyzer
^
|
add an index here