All Questions
Elasticsearch medium

Why does Elasticsearch strictly limit the default `index.max_result_window` to 10,000 documents?

  1. A To prevent unauthorized users from scraping the entire dataset.
  2. B Memory Protection: The coordinating node must fetch and sort all results from all shards before selecting the requested page. Querying page 5,000 with a size of 10 would require sorting 50,010 documents across all shards, causing massive heap pressure.
  3. C The inverted index logic fails if more than 10,000 pointers are active.
  4. D It is an artificial limit to encourage the use of the paid 'Elastic Search' plugin.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions