Skip to content

Conversation

@stefnestor
Copy link
Contributor

@stefnestor stefnestor commented Nov 9, 2024

👋 howdy, team! We now recommend search_after but no longer recommend scroll for searching size:>10K per doc

By default, you cannot page through more than 10,000 hits using the from and size parameters. To page through more hits, use the search_after parameter.

Therefore, this updates the historical error message to therefore point to search_after not scroll.

@stefnestor stefnestor added >enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team labels Nov 9, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@elasticsearchmachine elasticsearchmachine added the external-contributor Pull request authored by a developer outside the Elasticsearch team label Nov 9, 2024
@elasticsearchmachine
Copy link
Collaborator

Hi @stefnestor, I've created a changelog YAML for you.

@stefnestor
Copy link
Contributor Author

👋 May I have assistance on tests? Error is

java.lang.AssertionError: Failure at [search/30_limits:33]: the error message was expected to match the provided regex but didn't
Expected: 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\.
     but: was "{root_cause=[{type=illegal_argument_exception, reason=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. This limit can be set by changing the [index.max_result_window] index level setting., stack_trace=org.elasticsearch.ElasticsearchException$1: 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. This limit can be set by changing the [index.max_result_window] index level setting.\n\tat [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:706)\n\tat [email protected]/org.elasticsearch.action.search.SearchPhaseExecutionException.guessRootCauses(SearchPhaseExecutionException.java:161)\n\tat [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:688)\n\tat [email protected]/org.elasticsearch.ElasticsearchException.generateFailureXContent(ElasticsearchException.java:634)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.build(RestResponse.java:187)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:146)\n\tat [email protected]/org.elasticsearch.rest.RestResponse.<init>(RestResponse.java:117)\n\tat [email protected]/org.elasticsearch.rest.action.RestActionListener.onFailure(RestActionListener.java:54)\n\tat [email protected]/org.elasticsearch.rest.action.RestCancellableNodeClient$1.onFailure(RestCancellableNodeClient.java:97)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:64)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:75)\n\tat [email protected]/org.elasticsearch.action.ActionListener$3.onFailure(ActionListener.java:410)\n\tat [email protected]/org.elasticsearch.tasks.TaskManager$1.onFailure(TaskManager.java:215)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:64)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:75)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:32)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$RunBeforeActionListener.onFailure(ActionListenerImplementations.java:346)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:64)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:75)\n\tat [email protected]/org.elasticsearch.action.ActionListener$3.onFailure(ActionListener.java:410)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:64)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:75)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:32)\n\tat [email protected]/org.elasticsearch.action.search.TransportSearchAction$SearchResponseActionListener.onFailure(TransportSearchAction.java:1950)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:64)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:75)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:32)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations$RunAfterActionListener.onFailure(ActionListenerImplementations.java:307)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:64)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:75)\n\tat [email protected]/org.elasticsearch.action.ActionListener$3.onFailure(ActionListener.java:410)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.raisePhaseFailure(AbstractSearchAsyncAction.java:713)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:690)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:356)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:735)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:450)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:316)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:64)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:75)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:32)\n\tat [email protected]/org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:54)\n\tat [email protected]/org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:719)\n\tat [email protected]/org.elasticsearch.transport.TransportService$UnregisterChildTransportResponseHandler.handleException(TransportService.java:1776)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1509)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1643)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1618)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:44)\n\tat [email protected]/org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:45)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:152)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:29)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:34)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:1023)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1575)\nCaused by: java.lang.IllegalArgumentException: 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. This limit can be set by changing the [index.max_result_window] index level setting.\n\tat [email protected]/org.elasticsearch.search.DefaultSearchContext.preProcess(DefaultSearchContext.java:365)\n\tat [email protected]/org.elasticsearch.search.SearchService.createContext(SearchService.java:1097)\n\tat [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:702)\n\tat [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:574)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:79)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:76)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$4.doRun(ActionRunnable.java:101)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\t... 6 more\n}], type=search_phase_execution_exception, reason=all shards failed, phase=query, grouped=true, failed_shards=[{shard=0, index=test_1, node=HKoqpibwQZ6uiQYrInF6aQ, reason={type=illegal_argument_exception, reason=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. This limit can be set by changing the [index.max_result_window] index level setting., stack_trace=java.lang.IllegalArgumentException: 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. This limit can be set by changing the [index.max_result_window] index level setting.\n\tat [email protected]/org.elasticsearch.search.DefaultSearchContext.preProcess(DefaultSearchContext.java:365)\n\tat [email protected]/org.elasticsearch.search.SearchService.createContext(SearchService.java:1097)\n\tat [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:702)\n\tat [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:574)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:79)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:76)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$4.doRun(ActionRunnable.java:101)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:34)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:1023)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1575)\n}}], caused_by={type=illegal_argument_exception, reason=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. This limit can be set by changing the [index.max_result_window] index level setting., caused_by={type=illegal_argument_exception, reason=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. This limit can be set by changing the [index.max_result_window] index level setting., stack_trace=java.lang.IllegalArgumentException: 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. This limit can be set by changing the [index.max_result_window] index level setting.\n\tat [email protected]/org.elasticsearch.search.DefaultSearchContext.preProcess(DefaultSearchContext.java:365)\n\tat [email protected]/org.elasticsearch.search.SearchService.createContext(SearchService.java:1097)\n\tat [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:702)\n\tat [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:574)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:79)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:76)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$4.doRun(ActionRunnable.java:101)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:34)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:1023)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1575)\n}, stack_trace=org.elasticsearch.ElasticsearchException$1: 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. This limit can be set by changing the [index.max_result_window] index level setting.\n\tat [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:706)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:354)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:735)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:450)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:316)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:64)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:75)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:32)\n\tat [email protected]/org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:54)\n\tat [email protected]/org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:719)\n\tat [email protected]/org.elasticsearch.transport.TransportService$UnregisterChildTransportResponseHandler.handleException(TransportService.java:1776)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1509)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1643)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1618)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:44)\n\tat [email protected]/org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:45)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:152)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:29)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:34)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:1023)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1575)\nCaused by: java.lang.IllegalArgumentException: 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. This limit can be set by changing the [index.max_result_window] index level setting.\n\tat [email protected]/org.elasticsearch.search.DefaultSearchContext.preProcess(DefaultSearchContext.java:365)\n\tat [email protected]/org.elasticsearch.search.SearchService.createContext(SearchService.java:1097)\n\tat [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:702)\n\tat [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:574)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:79)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:76)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$4.doRun(ActionRunnable.java:101)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\t... 6 more\n}, stack_trace=Failed to execute phase [query], all shards failed; shardFailures {[HKoqpibwQZ6uiQYrInF6aQ][test_1][0]: org.elasticsearch.transport.RemoteTransportException: [test-cluster-0][127.0.0.1:61381][indices:data/read/search[phase/query]]\nCaused by: java.lang.IllegalArgumentException: 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. This limit can be set by changing the [index.max_result_window] index level setting.\n\tat [email protected]/org.elasticsearch.search.DefaultSearchContext.preProcess(DefaultSearchContext.java:365)\n\tat [email protected]/org.elasticsearch.search.SearchService.createContext(SearchService.java:1097)\n\tat [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:702)\n\tat [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:574)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:79)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:76)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$4.doRun(ActionRunnable.java:101)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:34)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:1023)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1575)\n}\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:690)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:356)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:735)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:450)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:316)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeAcceptException(ActionListenerImplementations.java:64)\n\tat [email protected]/org.elasticsearch.action.ActionListenerImplementations.safeOnFailure(ActionListenerImplementations.java:75)\n\tat [email protected]/org.elasticsearch.action.DelegatingActionListener.onFailure(DelegatingActionListener.java:32)\n\tat [email protected]/org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:54)\n\tat [email protected]/org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:719)\n\tat [email protected]/org.elasticsearch.transport.TransportService$UnregisterChildTransportResponseHandler.handleException(TransportService.java:1776)\n\tat [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1509)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1643)\n\tat [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1618)\n\tat [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:44)\n\tat [email protected]/org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:45)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:152)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:29)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:34)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:1023)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1575)\nCaused by: org.elasticsearch.ElasticsearchException$1: 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. This limit can be set by changing the [index.max_result_window] index level setting.\n\tat [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:706)\n\tat [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:354)\n\t... 22 more\nCaused by: java.lang.IllegalArgumentException: 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. This limit can be set by changing the [index.max_result_window] index level setting.\n\tat [email protected]/org.elasticsearch.search.DefaultSearchContext.preProcess(DefaultSearchContext.java:365)\n\tat [email protected]/org.elasticsearch.search.SearchService.createContext(SearchService.java:1097)\n\tat [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:702)\n\tat [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:574)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:79)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:76)\n\tat [email protected]/org.elasticsearch.action.ActionRunnable$4.doRun(ActionRunnable.java:101)\n\tat [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)\n\t... 6 more\n}"

But I did update 30_limits.yml & this confirms "the scroll api" doesn't show in any java files (outside a single comment) anymore

image

@javanna javanna added :Search Foundations/Search Catch all for Search Foundations and removed :Search/Search Search-related issues that do not fall into other categories labels Feb 14, 2025
@elasticsearchmachine elasticsearchmachine added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch and removed Team:Search Meta label for search team labels Feb 14, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@stefnestor
Copy link
Contributor Author

Closing as new doc system.

@stefnestor stefnestor closed this Jul 3, 2025
@javanna javanna removed the v9.2.0 label Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement external-contributor Pull request authored by a developer outside the Elasticsearch team :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants