b9030bf6fe
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 |
||
---|---|---|
.. | ||
request | ||
suggesters | ||
count.asciidoc | ||
explain.asciidoc | ||
field-stats.asciidoc | ||
multi-search.asciidoc | ||
percolate.asciidoc | ||
profile.asciidoc | ||
request-body.asciidoc | ||
search-shards.asciidoc | ||
search-template.asciidoc | ||
search.asciidoc | ||
suggesters.asciidoc | ||
uri-request.asciidoc | ||
validate.asciidoc |