TransportError: TransportError(500, u'search_phase_execution_exception', u'Result window is too large, from + size must be less than or equal to: [10000] but was [155984]. 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.')
It appears as if the initial count that sets the size for the actual query is returning a count of all files rather than a filtered count. Also knowing Elastic uses max_result_window, we should fail with a 400 - requested result set too large (or similar) when that original returned count is larger than the setting.
With a query that should return a reasonable size of results:
This error is returned:
It appears as if the initial count that sets the size for the actual query is returning a count of all files rather than a filtered count. Also knowing Elastic uses
max_result_window
, we should fail with a400 - requested result set too large
(or similar) when that original returned count is larger than the setting.