Skip to content

Commit 4126ae2

Browse files
committed
[DOCS] updated json responses after elastic#4310 and elastic#4480
- Removed "ok": true from response examples - Added "created" flag to index response examples - Replaced exists flag with found in delete response examples
1 parent 3399f69 commit 4126ae2

File tree

9 files changed

+11
-14
lines changed

9 files changed

+11
-14
lines changed

docs/reference/cat/recovery.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ of the recovery:
1414
[source,shell]
1515
--------------------------------------------------
1616
% curl -XPUT 192.168.56.30:9200/_settings -d'{"number_of_replicas":1}'
17-
{"ok":true,"acknowledged":true}
17+
{"acknowledged":true}
1818
% curl '192.168.56.30:9200/_cat/recovery?v'
1919
index shard target recovered % ip node
2020
wiki1 2 68083830 7865837 11.6% 192.168.56.20 Adam II

docs/reference/cat/shards.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Before a shard can be used, it goes through an `INITIALIZING` state.
5555
[source,shell]
5656
--------------------------------------------------
5757
% curl -XPUT 192.168.56.20:9200/_settings -d'{"number_of_replicas":1}'
58-
{"ok":true,"acknowledged":true}
58+
{"acknowledged":true}
5959
% curl 192.168.56.20:9200/_cat/shards
6060
wiki1 0 p STARTED 3014 31.1mb 192.168.56.10 Stiletto
6161
wiki1 0 r INITIALIZING 0 14.3mb 192.168.56.30 Frankie Raye

docs/reference/cluster/nodes-info.asciidoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ The result will look similar to:
4646
[source,js]
4747
--------------------------------------------------
4848
{
49-
"ok" : true,
5049
"cluster_name" : "test-cluster-MacBook-Air-de-David.local",
5150
"nodes" : {
5251
"hJLXmY_NTrCytiIMbX4_1g" : {

docs/reference/docs/bulk.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $ cat requests
3939
{ "index" : { "_index" : "test", "_type" : "type1", "_id" : "1" } }
4040
{ "field1" : "value1" }
4141
$ curl -s -XPOST localhost:9200/_bulk --data-binary @requests; echo
42-
{"took":7,"items":[{"create":{"_index":"test","_type":"type1","_id":"1","_version":1,"ok":true}}]}
42+
{"took":7,"items":[{"create":{"_index":"test","_type":"type1","_id":"1","_version":1}}]}
4343
--------------------------------------------------
4444

4545
Because this format uses literal `\n`'s as delimiters, please be sure

docs/reference/docs/delete-by-query.asciidoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ commands is:
2424
[source,js]
2525
--------------------------------------------------
2626
{
27-
"ok" : true,
2827
"_indices" : {
2928
"twitter" : {
3029
"_shards" : {

docs/reference/docs/delete.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ The result of the above delete operation is:
1616
[source,js]
1717
--------------------------------------------------
1818
{
19-
"ok" : true,
19+
"found" : true,
2020
"_index" : "twitter",
2121
"_type" : "tweet",
2222
"_id" : "1",
23-
"found" : true
23+
"_version" : 2
2424
}
2525
--------------------------------------------------
2626

docs/reference/docs/index_.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ The result of the above index operation is:
1919
[source,js]
2020
--------------------------------------------------
2121
{
22-
"ok" : true,
2322
"_index" : "twitter",
2423
"_type" : "tweet",
2524
"_id" : "1",
26-
"_version" : 1
25+
"_version" : 1,
26+
"created" : true
2727
}
2828
--------------------------------------------------
2929

@@ -179,11 +179,11 @@ The result of the above index operation is:
179179
[source,js]
180180
--------------------------------------------------
181181
{
182-
"ok" : true,
183182
"_index" : "twitter",
184183
"_type" : "tweet",
185184
"_id" : "6a8ca01c-7896-48e9-81cc-9f70661fcb32",
186-
"_version" : 1
185+
"_version" : 1,
186+
"created" : true
187187
}
188188
--------------------------------------------------
189189

docs/reference/search/explain.asciidoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ This will yield the following result:
2727
[source,js]
2828
--------------------------------------------------
2929
{
30-
"ok" : true,
3130
"matches" : true,
3231
"explanation" : {
3332
"value" : 0.15342641,

docs/reference/search/percolate.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,11 @@ Index response:
291291
[source,js]
292292
--------------------------------------------------
293293
{
294-
"ok" : true,
295294
"_index" : "my-index",
296295
"_type" : "message",
297296
"_id" : "1",
298-
"_version" : 1
297+
"_version" : 1,
298+
"created" : true
299299
}
300300
--------------------------------------------------
301301

0 commit comments

Comments
 (0)