显示Lucene / Elasticsearch索引的字段 [英] Show fields for a Lucene/Elasticsearch index

查看:87
本文介绍了显示Lucene / Elasticsearch索引的字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让Lucene / Elasticsearch显示给定索引中已经编入索引的字段?我试图弄清楚某些字段是否由于配置选项而被正确索引,但我不知道如何做出这个决定。

解决方案

您可以通过以下方式查看特定索引的映射和类型:

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

索引的任何内容都应该有一个条目。 >

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.

解决方案

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.

这篇关于显示Lucene / Elasticsearch索引的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆