From 0ce88b5887324b74969a87306a43780b732ee28f Mon Sep 17 00:00:00 2001 From: umeku Date: Tue, 15 Dec 2015 13:44:58 +0200 Subject: [PATCH] Fix inaccurate docs for nested datatype Closes #15436 --- docs/reference/mapping/types/nested.asciidoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/reference/mapping/types/nested.asciidoc b/docs/reference/mapping/types/nested.asciidoc index cca87853d83..b4bb06e236c 100644 --- a/docs/reference/mapping/types/nested.asciidoc +++ b/docs/reference/mapping/types/nested.asciidoc @@ -110,7 +110,7 @@ GET my_index/_search "bool": { "must": [ { "match": { "user.first": "Alice" }}, - { "match": { "user.last": "White" }} <2> + { "match": { "user.last": "Smith" }} <2> ] } } @@ -127,7 +127,7 @@ GET my_index/_search "bool": { "must": [ { "match": { "user.first": "Alice" }}, - { "match": { "user.last": "Smith" }} <3> + { "match": { "user.last": "White" }} <3> ] } }, @@ -137,14 +137,14 @@ GET my_index/_search "user.first": {} } } - } + } } } -------------------------------------------------- // AUTOSENSE <1> The `user` field is mapped as type `nested` instead of type `object`. -<2> This query doesn't match because `Alice` and `White` are not in the same nested object. +<2> This query doesn't match because `Alice` and `Smith` are not in the same nested object. <3> This query matches because `Alice` and `White` are in the same nested object. <4> `inner_hits` allow us to highlight the matching nested documents.