Include field-collapsing docs in request-body search

This commit is contained in:
Clinton Gormley 2017-01-30 11:47:05 +01:00
parent dc62255ddd
commit 938f5194ef
2 changed files with 4 additions and 2 deletions

View File

@ -183,4 +183,6 @@ include::request/named-queries-and-filters.asciidoc[]
include::request/inner-hits.asciidoc[] include::request/inner-hits.asciidoc[]
include::request/collapse.asciidoc[]
include::request/search-after.asciidoc[] include::request/search-after.asciidoc[]

View File

@ -1,5 +1,5 @@
[[search-request-collapse]] [[search-request-collapse]]
== Collapse === Field Collapsing
Allows to collapse search results based on field values. Allows to collapse search results based on field values.
The collapsing is done by selecting only the top sorted document per collapse key. The collapsing is done by selecting only the top sorted document per collapse key.
@ -35,7 +35,7 @@ The field used for collapsing must be a single valued <<keyword, `keyword`> or <
NOTE: The collapsing is applied to the top hits only and does not affect aggregations. NOTE: The collapsing is applied to the top hits only and does not affect aggregations.
=== Expand collapse results ==== Expand collapse results
It is also possible to expand each collapsed top hits with the `inner_hits` option. It is also possible to expand each collapsed top hits with the `inner_hits` option.