pub const MAX_COUNT: u64 = 10_000;
The largest page a search returns, whatever its _count. Elasticsearch’s index.max_result_window defaults to the same 10k.
_count
index.max_result_window