Skip to content

Commit 289a590

Browse files
committed
v2
1 parent 0daf2e7 commit 289a590

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search/30_limits.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ setup:
1919
---
2020
"Request window limits without scroll":
2121
- do:
22-
catch: /Result window is too large, from \+ size must be less than or equal to[:] \[10000\] but was \[10010\]\. See the scroll api for a more efficient way to request large data sets\./
22+
catch: /Result window is too large, from \+ size must be less than or equal to[:] \[10000\] but was \[10010\]\. See search after for a more efficient way to request large data sets\./
2323
search:
2424
rest_total_hits_as_int: true
2525
index: test_1

server/src/internalClusterTest/java/org/elasticsearch/search/simple/SimpleSearchIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ private void assertWindowFails(SearchRequestBuilder search) {
571571
+ IndexSettings.MAX_RESULT_WINDOW_SETTING.get(Settings.EMPTY)
572572
)
573573
);
574-
assertThat(e.toString(), containsString("See the scroll api for a more efficient way to request large data sets"));
574+
assertThat(e.toString(), containsString("See search after for a more efficient way to request large data sets"));
575575
}
576576

577577
private void assertRescoreWindowFails(int windowSize) {

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 search_after parameter for a more efficient way to request large data sets. "
363+
+ "]. See search after 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 search_after parameter for a more efficient way to request large data sets. "
199+
+ "] but was [310]. See search after 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)