elasticsearch _settings


查看所有索引的配置信息
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。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM