400 Bad Request: Result window is too large
- kuro19Participant4 months, 3 weeks ago #37875
Hi,
On PHP 8.1, ElasticSearch, I’ve already active the “Remove the limit on the number of results displayed. For Elasticsearch, the default limit is 10,000.” option but still see a lot of error log:
400 Bad Request: {"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 [25540]. 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":"my_mrm","node":"b7Mn-lG7QTuafO0J4kVEIA","reason":{"type":"illegal_argument_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [25540]. 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."}}],"caused_by":{"type":"illegal_argument_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [25540]. 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.","caused_by":{"type":"illegal_argument_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [25540]. 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}
Can you please recheck?
Thank you.
wpsolrKeymaster4 months, 3 weeks ago #37879As mentioned in logs, you should be able to remove the warnings with the index settings max_result_window.
You must be logged in to reply to this topic.