Magento 2.4.1 with Elasticsearch 7.10

Hi....If anyone has experience with Magento and Elasticsearch please?

We have this strange issue which came up latest days.

We use magento 2.4.1 and elasticsearch 7.10
Our catalog contains about 600 categories with 20000 skus.
Everytime we hit a category in front end we get error:

1 exception(s):
Exception #0 (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 [11424]. 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":"magento2_product_3_v16","node":"qNslYqZBRNiOlZuAWbzLGQ","reason":{"type":"illegal_argument_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [11424]. 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 [11424]. 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 [11424]. 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}

We don't have any error in reindex process and everything seems fine in magento.

Any ideas please would much appreciated
Thanks in advance

By default Elasticsearch only allows the search endpoint to return 10000, see Index modules | Elasticsearch Guide [7.10] | Elastic;

The maximum value of from + size for searches to this index. Defaults to 10000 . Search requests take heap memory and time proportional to from + size and this limits that memory. See Scroll or Search After for a more efficient alternative to raising this.

It sounds like you might want to chat to the Magento developers about dealing with >10K results.

The thing is that this store have these amount of product a lot of years. And this issue came up some days ago

Hi,
I was wondering whether you found some solution? I have the same issue....
Viktor

I didn't yet. Do you use any layered navigation module? It seems that this error comes from amasty layered

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.