From b8f2f4666e930cbe0b27a4bf3bca96d11ac9ab08 Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Wed, 13 Sep 2017 16:09:00 +0200 Subject: [PATCH] Fix incomplete sentences in parent-join docs (#26623) * Fix incomplete sentences in parent-join docs Closes #26590 --- docs/reference/mapping/types/parent-join.asciidoc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/reference/mapping/types/parent-join.asciidoc b/docs/reference/mapping/types/parent-join.asciidoc index 76495cff66658..94922060e7b26 100644 --- a/docs/reference/mapping/types/parent-join.asciidoc +++ b/docs/reference/mapping/types/parent-join.asciidoc @@ -39,7 +39,7 @@ PUT my_index To index a document with a join, the name of the relation and the optional parent of the document must be provided in the `source`. -For instance the following creates two parent documents in the `question` context: +For instance the following example creates two `parent` documents in the `question` context: [source,js] -------------------------------------------------- @@ -92,8 +92,7 @@ must be added in the `_source`. WARNING: It is required to index the lineage of a parent in the same shard so you must always route child documents using their greater parent id. -For instance the following index two children documents pointing to the same parent `1 -with a `routing` value equals to the `id` of the parent: +For instance the following example shows how to index two `child` documents: [source,js] -------------------------------------------------- @@ -118,7 +117,7 @@ PUT my_index/doc/4?routing=1&refresh // CONSOLE // TEST[continued] -<1> This child document must be on the same shard than its parent +<1> The routing value is mandatory because parent and child documents must be indexed on the same shard <2> `answer` is the name of the join for this document <3> The parent id of this child document