mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Add note about size being per shard here
It seems the current note via the comment is too less intrusive for people to notice and it leads to strange results otherwise.
This commit is contained in:
parent
0de66da2d4
commit
eeb47a081b
@ -68,6 +68,10 @@ do {
|
||||
scrollResp = client.prepareSearchScroll(scrollResp.getScrollId()).setScroll(new TimeValue(60000)).execute().actionGet();
|
||||
} while(scrollResp.getHits().getHits().length != 0); // Zero hits mark the end of the scroll and the while loop.
|
||||
--------------------------------------------------
|
||||
[NOTE]
|
||||
====
|
||||
The size-parameter is per shard, so if you run a query against multiple indices (leading to many shards being involved in the query) the result might be more documents per execution of the scroll than you would expect!
|
||||
====
|
||||
|
||||
[[java-search-msearch]]
|
||||
=== MultiSearch API
|
||||
|
Loading…
x
Reference in New Issue
Block a user