Browse Source

[Docs] Correct README example snippet (#45133)

The example tries to create a new index but the create index API requires the
"settings" parameter to be there.

Closes #45129
Christoph Büscher 6 years ago
parent
commit
afc6578858
1 changed files with 3 additions and 3 deletions
  1. 3 3
      README.textile

+ 3 - 3
README.textile

@@ -155,9 +155,9 @@ Complete control on the index level is allowed. As an example, in the above case
 <pre>
 curl -XPUT http://localhost:9200/another_user?pretty -H 'Content-Type: application/json' -d '
 {
-    "index" : {
-        "number_of_shards" : 2,
-        "number_of_replicas" : 1
+    "settings" : {
+        "index.number_of_shards" : 2,
+        "index.number_of_replicas" : 1
     }
 }'
 </pre>