查询索引相关信息

91 阅读1分钟

查询全部信息

GET /kibana_sample_data_ecommerce

获取索引配置参数的请求格式

host:port/{index}/_settings

{index}为索引名称,可以接收多种参数格式,*|_all|name1,name2,···

过滤配置参数返回结果

curl -XGET http://192.168.94.151:9200/kibana_sample_data_ecommerce/_settings?name=index.number_*
{
	"kibana_sample_data_ecommerce": {
		"settings": {
			"index": {
				"number_of_shards": "3",
				"number_of_replicas": "1"
			}
		}
	}
}

获取索引映射的请求格式

host:port/{index}/_mapping