From 79a574dfc13f25b2926f7b9d6a544991ba4212dd Mon Sep 17 00:00:00 2001 From: CindyChn <31952726+CindyChn@users.noreply.github.com> Date: Tue, 26 Dec 2017 12:57:14 +0800 Subject: [PATCH] Update 33_Nested_sorting.asciidoc (#520) --- 402_Nested/33_Nested_sorting.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/402_Nested/33_Nested_sorting.asciidoc b/402_Nested/33_Nested_sorting.asciidoc index 64389dedb..a871c831f 100644 --- a/402_Nested/33_Nested_sorting.asciidoc +++ b/402_Nested/33_Nested_sorting.asciidoc @@ -70,5 +70,5 @@ GET /_search <3> 排序子句中的 `nested_path` 和 `nested_filter` 和 `query` 子句中的 `nested` 查询相同,原因在下面有解释。 我们为什么要用 nested_path 和 nested_filter 重复查询条件呢?原因在于,排序发生在查询执行之后。 -查询条件限定了只在10月份收到评论的博客文档,但返回整个博客文档。如果我们不在排序子句中加入 `nested_filter` , +查询条件限定了在10月份收到评论的博客文档,但返回的是博客文档。如果我们不在排序子句中加入 `nested_filter` , 那么我们对博客文档的排序将基于博客文档的所有评论,而不是仅仅在10月份接收到的评论。