弹性搜索的字段分析 UI

Field Analysis UI for Elastic Search

Solr 有这个漂亮的分析工具,可以尝试不同的字段类型和分析器,而无需经历 index/query 循环。

https://lucene.apache.org/solr/guide/6_6/analysis-screen.html

弹性搜索是否有类似的东西。

Elasticsearch 没有任何此类 UI 可供分析。 Elasticsearch提供了一个API进行分析,并以json格式响应。

GET /_analyze
{
  "analyzer" : "standard",
  "text" : "Quick Brown Foxes!"
}

另一个API是:

GET /_analyze
{
  "tokenizer" : "standard",
  "filter" : ["snowball"],
  "text" : "detailed output",
  "explain" : true,
  "attributes" : ["keyword"] 
}