Difference between revisions of "Elasticsearch update index settings"

From wikieduonline
Jump to navigation Jump to search
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
 
 
* https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html
 
* https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html
  
 +
[[curl -xPUT]] -u "elactic:yourpassword" https://localhost:9200/my-index-000001/_settings
  
  curl -xPUT -u "elactic:yourpassword" https://localhost:9200/my-index-000001/_settings  
+
=== Number of replicas ===
 +
  PUT /my-index-000001/_settings
 +
{
 +
  "index" : {
 +
    "[[number_of_replicas]]" : 2
 +
  }
 +
}
  
 
  PUT /my-index-000001/_settings
 
  PUT /my-index-000001/_settings
 
  {
 
  {
 
   "index" : {
 
   "index" : {
     "[[number_of_replicas]]" : 2
+
     "[[number_of_replicas]]" : 0
 
   }
 
   }
 
  }
 
  }
  
 +
=== Disk [[Watermark]] ===
 +
{{Update watermark}}
 +
 +
 +
=== fields.limit ===
 +
PUT test_index/_settings
 +
{
 +
  "[[index.mapping.]]total_fields.limit": 2000
 +
}
  
[[Elasticsearch index]]
+
== Relatated ==
 +
* [[Elasticsearch index]]
 +
* [[Low disk watermark]]
 +
* <code>[[/_cat/indices]]</code>
  
 
== See also ==
 
== See also ==
Line 20: Line 37:
  
  
[[Category:ES]]
+
[[Category:Elasticsearch]]

Latest revision as of 15:48, 27 December 2022

Advertising: