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

Hi,
generally it is not advisable to have a search query returning more than 10000 documents. I suggest you use a query which narrows down your result to at least a few hundred. Apart from the result limit, in the discover tab you also have a default limit of (I think) 500 results to display.

In case you want to search more than those 10000 documents you should use the scroll API as suggested in the error message.

You can also change the index.max_result_window but this is NOT advised

Hope this helps