OpenSearch/docs/reference
Jim Ferenczi e48bc2eed7 Add field collapsing for search request (#22337)
* Add top hits collapsing to search request

The field collapsing is done with a custom top docs collector that "collapse" search hits with same field value.
The distributed aspect is resolve using the two passes that the regular search uses. The first pass "collapse" the top hits, then the coordinating node merge/collapse the top hits from each shard.

```
GET _search
{
   "collapse": {
      "field": "category",
   }
}
```

This change also adds an ExpandCollapseSearchResponseListener that intercepts the search response and expands collapsed hits using the CollapseBuilder#innerHit} options.
The retrieval of each inner_hits is done by sending a query to all shards filtered by the collapse key.

```
GET _search
{
   "collapse": {
      "field": "category",
      "inner_hits": {
	"size": 2
      }
   }
}
```
2017-01-23 16:33:51 +01:00
..
aggregations Docs: CONSOLE-ify value_count aggregation docs 2017-01-23 10:07:29 -05:00
analysis Make boolean conversion strict (#22200) 2017-01-19 07:59:18 +01:00
cat Fix duplicates from search.query (#22701) 2017-01-20 18:45:10 +01:00
cluster Cluster allocation explain API documentation (#22436) 2017-01-10 08:55:39 -06:00
docs Fix formatting in update-by-query (#22628) 2017-01-16 12:44:51 +01:00
how-to Improve wording in recipes docs 2017-01-17 21:00:36 -05:00
images Docs: clarify calculation of sigma and lambda in function_score (#20267) 2016-09-02 14:41:07 +02:00
index-modules Restores the original default format of search slow log 2016-12-09 12:38:28 -05:00
indices Add a deprecation notice to shadow replicas (#22647) 2017-01-18 12:28:09 +01:00
ingest Link directly to the attachments in arrays section 2016-12-22 20:52:08 +08:00
mapping [Docs] Remove outdated info about enabling/disabling doc_values (#22694) 2017-01-19 17:33:40 +01:00
migration Make boolean conversion strict (#22200) 2017-01-19 07:59:18 +01:00
modules Docs: Fix link syntax in cross-cluster docs 2017-01-18 10:13:48 +01:00
query-dsl Indentation error on example of dist_max (#22578) 2017-01-12 09:38:36 +01:00
search Add field collapsing for search request (#22337) 2017-01-23 16:33:51 +01:00
setup Expose logs base path 2017-01-16 07:39:37 -05:00
testing Update docs after test-framework moved 2016-11-02 09:51:55 -04:00
aggregations.asciidoc `value_type` is useful regardless of scripting. (#22160) 2016-12-22 14:35:12 +01:00
analysis.asciidoc Add the ability to set an analyzer on keyword fields. (#21919) 2016-12-30 09:36:10 +01:00
api-conventions.asciidoc Make boolean conversion strict (#22200) 2017-01-19 07:59:18 +01:00
cat.asciidoc Allows multiple patterns to be specified for index templates (#21009) 2016-11-10 18:00:30 -05:00
cluster.asciidoc Convert more docs to CONSOLE 2016-09-21 09:36:21 -04:00
docs.asciidoc Inclusion of link to Multi Delete (#22619) 2017-01-16 12:58:59 +01:00
getting-started.asciidoc Corrected a plural verb to a singular one. (#22681) 2017-01-20 19:00:10 +01:00
glossary.asciidoc Improve glossary to not refer to types as "like a table" (#17704) 2016-04-13 14:29:47 +02:00
how-to.asciidoc Correct grammar in list in how-to docs 2017-01-17 20:57:22 -05:00
index-modules.asciidoc Allow an index to be partitioned with custom routing (#22274) 2017-01-18 08:51:23 +01:00
index.asciidoc [docs] Document Docker installation method 2016-11-17 15:06:32 +02:00
indices.asciidoc Removed the upgrade API docs 2016-10-11 12:21:46 +02:00
ingest.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
mapping.asciidoc Disable _all by default 2017-01-11 16:47:13 -07:00
modules.asciidoc Docs: Cross-cluster search doc wasn't being included 2017-01-18 10:02:51 +01:00
query-dsl.asciidoc Fixed broken xrefs to query-dsl-not-query, which has been removed. 2015-10-20 13:01:37 -07:00
redirects.asciidoc Remove indices query (#21837) 2016-11-30 19:37:01 +01:00
release-notes.asciidoc Remove links to release notes 2016-09-08 18:07:39 +02:00
search.asciidoc percolator: remove deprecated percolate and mpercolate apis 2017-01-10 11:18:27 +01:00
setup.asciidoc Improve the out-of-the-box experience 2016-12-01 17:26:29 -05:00
testing.asciidoc