Skip to content

Commit 0daf2e7

Browse files
committed
Update index.max_result_window error to point to search_after not scroll
1 parent e96c755 commit 0daf2e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/search/DefaultSearchContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public void preProcess() {
360360
+ maxResultWindow
361361
+ "] but was ["
362362
+ resultWindow
363-
+ "]. See the scroll api for a more efficient way to request large data sets. "
363+
+ "]. See the search_after parameter for a more efficient way to request large data sets. "
364364
+ "This limit can be set by changing the ["
365365
+ IndexSettings.MAX_RESULT_WINDOW_SETTING.getKey()
366366
+ "] index level setting."

server/src/test/java/org/elasticsearch/search/DefaultSearchContextTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ protected Engine.Searcher acquireSearcherInternal(String source) {
196196
"Result window is too large, from + size must be less than or equal to:"
197197
+ " ["
198198
+ maxResultWindow
199-
+ "] but was [310]. See the scroll api for a more efficient way to request large data sets. "
199+
+ "] but was [310]. See the search_after parameter for a more efficient way to request large data sets. "
200200
+ "This limit can be set by changing the ["
201201
+ IndexSettings.MAX_RESULT_WINDOW_SETTING.getKey()
202202
+ "] index level setting."

0 commit comments

Comments
 (0)