从ElasticSearch中的集群获取所有索引和类型的名称 [英] Get all index and types' names from cluster in ElasticSearch
本文介绍了从ElasticSearch中的集群获取所有索引和类型的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
curl -XGET'http:// localhost:9200 / _cat / indices?v'
将为您提供所有索引。
curl -XGET'http:// localhost:9200 / _mapping?pretty = true'
将为您提供这些索引中的文档类型及其映射。
I have my cluster and I want to know all indexes and types' names in it. I use Sense.
解决方案
curl -XGET 'http://localhost:9200/_cat/indices?v'
will give you all the indexes.
curl -XGET 'http://localhost:9200/_mapping?pretty=true'
will give you the document types in these indexes, together with their mappings.
这篇关于从ElasticSearch中的集群获取所有索引和类型的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文