OpenSearch/docs/reference/search
Jim Ferenczi b9030bf6fe Add the ability to partition a scroll in multiple slices.
API:

```
curl -XGET 'localhost:9200/twitter/tweet/_search?scroll=1m' -d '{
    "slice": {
        "field": "_uid", <1>
        "id": 0, <2>
        "max": 10 <3>
    },
    "query": {
        "match" : {
            "title" : "elasticsearch"
        }
    }
}
```

<1> (optional) The field name used to do the slicing (_uid by default)
<2> The id of the slice

By default the splitting is done on the shards first and then locally on each shard using the _uid field
with the following formula:
`slice(doc) = floorMod(hashCode(doc._uid), max)`
For instance if the number of shards is equal to 2 and the user requested 4 slices then the slices 0 and 2 are assigned
to the first shard and the slices 1 and 3 are assigned to the second shard.

Each scroll is independent and can be processed in parallel like any scroll request.

Closes #13494
2016-06-07 16:21:53 +02:00
..
request Add the ability to partition a scroll in multiple slices. 2016-06-07 16:21:53 +02:00
suggesters Update completion-suggest.asciidoc 2016-04-22 14:00:37 +02:00
count.asciidoc Adds CONSOLE to count api 2016-05-18 13:36:19 +02:00
explain.asciidoc Revert "[QUERY] Remove lowercase_expanded_terms and locale options" 2015-03-13 13:51:44 -06:00
field-stats.asciidoc Extend field stats: 2016-04-27 16:51:53 +02:00
multi-search.asciidoc Docs: Always quote "@file" argument to --data-binary 2015-09-19 17:28:15 +02:00
percolate.asciidoc percolator: renamed `percolator` query to `percolate` query 2016-04-20 15:23:54 +02:00
profile.asciidoc [DOCS] Updates the documentation for the recent changes in the profiler 2016-05-17 09:58:30 +01:00
request-body.asciidoc Add search_after parameter in the Search API. 2016-01-27 09:42:58 +01:00
search-shards.asciidoc Docs: Fixed path to search-shards 2014-07-26 15:05:53 +02:00
search-template.asciidoc Changed indexed scripts to be stored in the cluster state instead of the `.scripts` index. 2016-04-22 13:42:55 +02:00
search.asciidoc Fix minor typo (#18222) 2016-05-10 09:39:42 +02:00
suggesters.asciidoc Typo in verb tense of "to gather" 2016-03-03 16:21:11 -07:00
uri-request.asciidoc [docs] Add // CONSOLE to validate and uri-request 2016-05-17 21:21:43 -04:00
validate.asciidoc [docs] Add // CONSOLE to validate and uri-request 2016-05-17 21:21:43 -04:00