Browse Source

Edited response structure on indexing a document (#20517)

Added "_shards" and "result" keys to the response.
Alexander Guz 9 years ago
parent
commit
8ec94a4ba0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      docs/reference/getting-started.asciidoc

+ 6 - 0
docs/reference/getting-started.asciidoc

@@ -302,6 +302,12 @@ curl -XPUT 'localhost:9200/customer/external/1?pretty' -d '
   "_type" : "external",
   "_id" : "1",
   "_version" : 1,
+  "result" : "created",
+  "_shards" : {
+    "total" : 2,
+    "successful" : 1,
+    "failed" : 0
+  },
   "created" : true
 }
 --------------------------------------------------