Browse Source

Fix simulate example in ingest docs

When simulating an ingest pipeline against an existing pipeline, the
_source field is required to wrap each doc. This commit fixes an example
in the docs that is missing this.

Relates #25742
Glen Smith 8 years ago
parent
commit
e3a0c11239
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/reference/ingest/ingest-node.asciidoc

+ 2 - 2
docs/reference/ingest/ingest-node.asciidoc

@@ -220,8 +220,8 @@ Here is the structure of a simulate request against an existing pipeline:
 POST _ingest/pipeline/my-pipeline-id/_simulate
 {
   "docs" : [
-    { /** first document **/ },
-    { /** second document **/ },
+    { "_source": {/** first document **/} },
+    { "_source": {/** second document **/} },
     // ...
   ]
 }