From ef213459cd6d218e45fba41f0baece648898d2a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Tue, 2 Jan 2018 18:41:30 +0100 Subject: [PATCH 1/2] [Docs] Add note on limitation for significant_text with nested objects Add section to `significant_text` documentation mentioning that it currently does not support use on nested objects. Relates to #28050 --- .../bucket/significanttext-aggregation.asciidoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/reference/aggregations/bucket/significanttext-aggregation.asciidoc b/docs/reference/aggregations/bucket/significanttext-aggregation.asciidoc index cf282bb7fce86..ef0f07d0ed8b6 100644 --- a/docs/reference/aggregations/bucket/significanttext-aggregation.asciidoc +++ b/docs/reference/aggregations/bucket/significanttext-aggregation.asciidoc @@ -334,6 +334,12 @@ Clients can always take the heavily-trimmed set of results from a `significant_t make a subsequent follow-up query using a `terms` aggregation with an `include` clause and child aggregations to perform further analysis of selected keywords in a more efficient fashion. +===== No support for nested objects + +The significant_text aggregation currently also cannot be use with text fields in +nested objects, because it works with the document JSON source. This makes this +feature inefficient when matching nested docs from stored JSON given a matching +Lucene docID. ===== Approximate counts The counts of how many documents contain a term provided in results are based on summing the samples returned from each shard and From 27bc716b5272450d7c78d328296eb32df5963758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Wed, 3 Jan 2018 15:06:53 +0100 Subject: [PATCH 2/2] Corrected typo --- .../aggregations/bucket/significanttext-aggregation.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/aggregations/bucket/significanttext-aggregation.asciidoc b/docs/reference/aggregations/bucket/significanttext-aggregation.asciidoc index ef0f07d0ed8b6..11dd0ea7b99f7 100644 --- a/docs/reference/aggregations/bucket/significanttext-aggregation.asciidoc +++ b/docs/reference/aggregations/bucket/significanttext-aggregation.asciidoc @@ -336,7 +336,7 @@ aggregations to perform further analysis of selected keywords in a more efficien ===== No support for nested objects -The significant_text aggregation currently also cannot be use with text fields in +The significant_text aggregation currently also cannot be used with text fields in nested objects, because it works with the document JSON source. This makes this feature inefficient when matching nested docs from stored JSON given a matching Lucene docID.