Browse Source

Include field-collapsing docs in request-body search

Clinton Gormley 8 years ago
parent
commit
938f5194ef

+ 2 - 0
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[]

+ 2 - 2
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 <<keyword, `keyword`> 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.