Skip to content

Commit 44de7ac

Browse files
committed
Address review comments
1 parent a088fcf commit 44de7ac

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/reference/mapping/types/parent-join.asciidoc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The `join` datatype is a special field that creates
55
parent/child relation within documents of the same index.
66
This field defines a set of possible relations within the documents,
77
each relation being a parent name and a child name.
8-
A parent/child relation can be defined as follow:
8+
A parent/child relation can be defined as follows:
99

1010
[source,js]
1111
--------------------------------------------------
@@ -375,7 +375,17 @@ PUT my_index
375375
<1> `my_parent` is parent of `my_child` and `another_child`
376376
<2> `another_child` is parent of `grand_child
377377

378-
Indexing a great child document requires a `routing` value equals
378+
The mapping above represents the following tree:
379+
380+
my_parent
381+
/ \
382+
/ \
383+
my_child another_child
384+
|
385+
|
386+
grand_child
387+
388+
Indexing a grand child document requires a `routing` value equals
379389
to the grand-parent (the greater parent of the lineage):
380390

381391

0 commit comments

Comments
 (0)