[Docs] Correct README example snippet
The example tries to create a new index but the create index API requires the
"settings" parameter to be there.
Closes
@@ -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" : 1,
- "number_of_replicas" : 1
+ "settings" : {
+ "index.number_of_shards" : 1,
+ "index.number_of_replicas" : 1
}
}'
</pre>
