You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the default value of plugins.query.size_limit to MAX_RESULT_WINDOW (10000) (#2860)
* Change the default value of plugins.query.size_limit to MAX_RESULT_WINDOW (10000)
Signed-off-by: Lantao Jin <[email protected]>
* fix ut
Signed-off-by: Lantao Jin <[email protected]>
* fix spotless
Signed-off-by: Lantao Jin <[email protected]>
---------
Signed-off-by: Lantao Jin <[email protected]>
Copy file name to clipboardexpand all lines: docs/user/admin/settings.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -202,7 +202,7 @@ plugins.query.size_limit
202
202
Description
203
203
-----------
204
204
205
-
The new engine fetches a default size of index from OpenSearch set by this setting, the default value is 200. You can change the value to any value not greater than the max result window value in index level (10000 by default), here is an example::
205
+
The new engine fetches a default size of index from OpenSearch set by this setting, the default value equals to max result window in index level (10000 by default). You can change the value to any value not greater than the max result window value in index level (`index.max_result_window`), here is an example::
206
206
207
207
>> curl -H 'Content-Type: application/json' -X PUT localhost:9200/_plugins/_query/settings -d '{
@@ -373,4 +373,4 @@ At the moment there is no optimization to merge similar sort operators to avoid
373
373
374
374
Sort Push Down
375
375
--------------
376
-
Without sort push down optimization, the sort operator will sort the result from child operator. By default, only 200 docs will extracted from the source index, `you can change this value by using size_limit setting <../admin/settings.rst#opensearch-query-size-limit>`_.
376
+
Without sort push down optimization, the sort operator will sort the result from child operator. By default, only 10000 docs will extracted from the source index, `you can change this value by using size_limit setting <../admin/settings.rst#opensearch-query-size-limit>`_.
Copy file name to clipboardexpand all lines: docs/user/ppl/admin/settings.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -125,9 +125,9 @@ plugins.query.size_limit
125
125
Description
126
126
-----------
127
127
128
-
The size configure the maximum amount of documents to be pull from OpenSearch. The default value is: 200
128
+
The size configure the maximum amount of documents to be pull from OpenSearch. The default value is: 10000
129
129
130
-
Notes: This setting will impact the correctness of the aggregation operation, for example, there are 1000 docs in the index, by default, only 200 docs will be extract from index and do aggregation.
130
+
Notes: This setting will impact the correctness of the aggregation operation, for example, there are 1000 docs in the index, if you change the value to 200, only 200 docs will be extract from index and do aggregation.
0 commit comments