ElasticSearch无法找到分析仪?

时间:2016-05-04 13:17:23

标签: elasticsearch elasticsearch-plugin elasticsearch-2.0

我在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

1 个答案:

答案 0 :(得分:9)

如果您在根路径上调用/_analyze找不到分析器,请尝试在路径上指定至少一个现有索引

$ echo 'A drop in the ocean'| http :5600/some_index/_analyze?analyzer=titleAnalyzer
                                              ^
                                              |
                                      add an index here