如何在Elasticsearch中运行单个特定的分析器或过滤器?

时间:2012-03-08 15:02:54

标签: elasticsearch

我想看看不同的分析仪和过滤器如何响应我的输入。我不想在索引映射中运行为字段定义的所有分析器,我希望能够单独运行它们2)而无需重新索引。

看起来应该这样做:

curl -XGET 'localhost:9200/_analyze?analyzer=standard' -d 'this is a test'

Elasticsearch Analyze API所述,但它对我不起作用。 API是否以某种方式发生了变化?

这就是我得到的:

No handler found for uri [/_analyze?analyzer=standard] and method [GET]

1 个答案:

答案 0 :(得分:3)

解决了,它仅适用于Elasticsearch v 0.19。