You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scroll parameter control the keep alive time of the scrolling request and initiates the scrolling process. The timeout applies per round trip (i.e. between the previous scan scroll request, to the next).
The response will include no hits, with two important results, the total_hits will include the total hits that match the query, and the scroll_id that allows to start the scroll process. From this stage, the _search/scroll endpoint should be used to scroll the hits, feeding the next scroll request with the previous search result scroll_id. For example:
The
scan
search type allows to efficiently scroll a large result set. Its used first by executing a search request with scrolling and a query:The
scroll
parameter control the keep alive time of the scrolling request and initiates the scrolling process. The timeout applies per round trip (i.e. between the previous scan scroll request, to the next).The response will include no hits, with two important results, the
total_hits
will include the total hits that match the query, and thescroll_id
that allows to start the scroll process. From this stage, the_search/scroll
endpoint should be used to scroll the hits, feeding the next scroll request with the previous search resultscroll_id
. For example:The "breaking" condition out of a scroll is when no hits has been returned. The
total_hits
will be maintained between scroll requests.Note,
scan
search type does not support sorting (either on score or a field) or faceting.The text was updated successfully, but these errors were encountered: