Fixed the documentation formatting. (#17990)
The source code example for the initial example was missing the correct JSON object formatting and syntax. That has been fixed with my change.
This commit is contained in:
parent
e322903f2c
commit
b2ce2f5afa
|
@ -14,13 +14,14 @@ associated with it.
|
||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
$ curl -XPUT 'http://localhost:9200/twitter/'
|
$ curl -XPUT 'http://localhost:9200/twitter/' -d '{
|
||||||
|
"settings" : {
|
||||||
$ curl -XPUT 'http://localhost:9200/twitter/' -d '
|
"index" : {
|
||||||
index :
|
"number_of_shards" : 3 <1>
|
||||||
number_of_shards : 3 <1>
|
"number_of_replicas" : 2 <2>
|
||||||
number_of_replicas : 2 <2>
|
}
|
||||||
'
|
}
|
||||||
|
}'
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
<1> Default for `number_of_shards` is 5
|
<1> Default for `number_of_shards` is 5
|
||||||
<2> Default for `number_of_replicas` is 1 (ie one replica for each primary shard)
|
<2> Default for `number_of_replicas` is 1 (ie one replica for each primary shard)
|
||||||
|
|
Loading…
Reference in New Issue