不为失败找理由,要为成功找方法。

elasticsearch.yml 定义的分析器 failed to find analyzer

Elasticsearch | 作者 zplzpl | 发布于2016年06月27日 | 阅读数:5547

问个问题,elasticsearch.yml 里面的定义的分析器,为什么用 _analyze?text=江南皮革六味地黄丸胶囊&analyzer=pinyin_first_letter_analyzer 这样用不了?

response:
{ "error": { "root_cause": [ { "type": "remote_transport_exception", "reason": "[node-1][10.0.2.15:9300][indices:admin/analyze[s]]" } ], "type": "illegal_argument_exception", "reason": "failed to find analyzer [pinyin_first_letter_analyzer]" }, "status": 400 }

是不是一定要写mapping之后才可以用? 
已邀请:

zplzpl

赞同来自:

使用的ES 2.3.3版本
 
index前面增加了空格的。

要回复问题请先登录注册