diff --git a/docs/reference/search/request-body.asciidoc b/docs/reference/search/request-body.asciidoc index 852710df70b..13df8d471eb 100644 --- a/docs/reference/search/request-body.asciidoc +++ b/docs/reference/search/request-body.asciidoc @@ -183,4 +183,6 @@ include::request/named-queries-and-filters.asciidoc[] include::request/inner-hits.asciidoc[] +include::request/collapse.asciidoc[] + include::request/search-after.asciidoc[] diff --git a/docs/reference/search/request/collapse.asciidoc b/docs/reference/search/request/collapse.asciidoc index de5ba40ad20..26ce0ce71b1 100644 --- a/docs/reference/search/request/collapse.asciidoc +++ b/docs/reference/search/request/collapse.asciidoc @@ -1,5 +1,5 @@ [[search-request-collapse]] -== Collapse +=== Field Collapsing Allows to collapse search results based on field values. 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 < or < 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.