Result window is too large, from + size must be less than or equal to: [10000] but was [100000]

elasticsearch

I got the following Error in elasticSearch:

[Result window is too large, from + size must be less than or equal
to: [10000]
but was [100000].

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 parameter.] and i am not getting
in which file we have to set

 index.max_result_window = 50000;

Best Answer

You can find here some references to official documentation for deep paging.

If you need to update the maximum result window in your elasticsearch instance, you can edit settings this way

curl -XPUT "http://localhost:9200/my_index/_settings" -d '{ "index" : { "max_result_window" : 500000 } }' -H "Content-Type: application/json"

as already discussed here, but pay attention to deep paging, because it could increase memory usage and degrade performance of elasticsearch.

In order to implement a more efficient search, you should take a look at:

Related Topic