[RFC] Change the default value of plugins.query.size_limit
to 10000 (MAX_RESULT_WINDOW)
#2859
Labels
enhancement
New feature or request
Is your feature request related to a problem?
The
plugins.query.size_limit
configure the maximum amount of rows returned by query. The default value is 200 which inherited from the legacy settingsopendistro.query.size_limit
.200
is insufficient for many use cases which results incorrect outcomes:LIMIT
#1774 described a scenario that query with limit 2000 which overwritten by the default value 200.On the other hand,
plugins.query.size_limit
is not the only threshold to protect the service from OOM issue.plugins.query.memory_limit
which default value is 85% could be another gatekeeper.In OpenSearch, the maximum result for searches on index controlled by
index.max_result_window
, which is 10000 by default. That is the suggested new default value ofplugins.query.size_limit
.Goals
Non-Goals
scrollRequest
to handle the case which requests docs more than 10000.SortOperator
+LimitOperator
#2857 proposed a solution to do a top-K sort.What solution would you like?
Change the default value of
plugins.query.size_limit
to the default value ofindex.max_result_window
(10000 by default)What alternatives have you considered?
#703 (comment) proposed a more complex solution that leverage
scrollRequest
to handle the case which requests docs more than 10000.E.g.
source=index | head 11000
returns 11000 rows using scrollbut
source=index | fields a,b | head 11000
still returns 200 rowsDo you have any additional context?
The text was updated successfully, but these errors were encountered: