查看所有索引的配置信息
GET /_settings
查看某個索引的配置信息
GET /index_name/_settings
{
"my_index": {
"settings": {
"index": {
"mapping": {
"nested_fields": {
"limit": "3"
}
},
"number_of_shards": "5",
"provided_name": "my_index",
"creation_date": "1501401908363",
"number_of_replicas": "1",
"uuid": "aBaORhvoQb6emZkfKXqSPA",
"version": {
"created": "5010199"
}
}
}
}
}
創建索引時設置
PUT /my_temp_index
{
"settings": {
"number_of_shards" : ,
"number_of_replicas" : 0
}
}
設置索引的副本信息(分片個數不允許修改)
PUT /my_temp_index/_settings
{
"number_of_replicas" : 0
}
index.mapping.total_fields.limit:索引中的最大字段數。默認值為1000。
index.mapping.nested_fields.limit:索引中嵌套字段的最大數量默認為50。