Skip to content

Commit

Permalink
Update index.max_result_window error to point to search_after not scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
stefnestor committed Nov 9, 2024
1 parent e96c755 commit 0daf2e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public void preProcess() {
+ maxResultWindow
+ "] but was ["
+ resultWindow
+ "]. See the scroll api for a more efficient way to request large data sets. "
+ "]. See the search_after parameter for a more efficient way to request large data sets. "
+ "This limit can be set by changing the ["
+ IndexSettings.MAX_RESULT_WINDOW_SETTING.getKey()
+ "] index level setting."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected Engine.Searcher acquireSearcherInternal(String source) {
"Result window is too large, from + size must be less than or equal to:"
+ " ["
+ maxResultWindow
+ "] but was [310]. See the scroll api for a more efficient way to request large data sets. "
+ "] but was [310]. See the search_after parameter for a more efficient way to request large data sets. "
+ "This limit can be set by changing the ["
+ IndexSettings.MAX_RESULT_WINDOW_SETTING.getKey()
+ "] index level setting."
Expand Down

0 comments on commit 0daf2e7

Please sign in to comment.