Scrolling searches
Steps to query an index and iterate results
Step A — Run the initial search and start a scroll context
POST /datalakeapi/index_name/_search?scroll=1m
{
"size": 1000,
"sort": ["_doc"],
"query": { "match_all": {} }
}Step B — Request the next page using the last _scroll_id
Step C — End of results: clean up the scroll context (recommended)
Last updated