Show fields for a Lucene/Elasticsearch index

2019-07-20 06:16发布

Is there a way to get Lucene/Elasticsearch to just show what fields have been indexed in a given index? I'm trying to figure out whether certain fields have been indexed properly as a result of configuration options, but I have no idea how to make that determination.

2条回答
看我几分像从前
2楼-- · 2019-07-20 06:54

See also analyze API to see how text is broken into terms.

http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.html

查看更多
倾城 Initia
3楼-- · 2019-07-20 07:07

You can check the mappings for a specific index and type via a call to:

http://localhost:9200/index/type/_mapping

Anything indexed should have an entry there.

查看更多
登录 后发表回答