Result window is too large

Created on 22 September 2020, almost 4 years ago
Updated 13 February 2024, 5 months ago

Elasticsearch\Common\Exceptions\BadRequest400Exception: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [37310]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"elasticsearch_index_green_index","node":"Y5zoS4EGScG2R473vFOtUA","reason":{"type":"illegal_argument_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [37310]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting."}}]},"status":400} in Elasticsearch\Connections\Connection->process4xxError() (line 630 of /var/www/html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php).

By default max_result_window result is 10000. Sometime search get more than 10000 result. And my application throw above error.

Please suggest a solution for this issue.

Thanks in advance

💬 Support request
Status

Active

Component

Code

Created by

🇮🇳India hasmimeraj

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024