-
Notifications
You must be signed in to change notification settings - Fork 29
Batch size is too large, size must be less than or equal to: [10000] #156
Comments
Can you try
instead of
Not sure what version are you running. It looks like there may be some version incompatibilities in elasticsearch. |
Hi |
I think that i m not using the best way to make scoll request and there is no documentation how to used it |
Ah, the client currently supports 2.x elasticsearch. We are moving to 6.1 at the moment. Do you plan to migrate to 6.1 version in the near future? |
I tried Elasticsearch 6.1 and its not working at all( i can't send requests to ES )
|
@ZakariaHili Did you ever resolve this error?
I am seeing it as well |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Is there an example to make a request with scroll batch because when i try to retrieve all indexed data, i receive the error :
Exception in thread "main" org.scalatest.exceptions.TestFailedException: The future returned an exception of type: com.sumologic.elasticsearch.restlastic.RestlasticSearchClient$ReturnTypes$ElasticErrorResponse, with message: ElasticsearchError(status=500): JString({"error":{"root_cause":[{"type":"query_phase_execution_exception","reason":"Batch size is too large, size must be less than or equal to: [10000] but was [10029]. Scroll batch sizes cost as much memory as result windows so they are controlled by the [index.max_result_window] index level setting."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"materials","node":"zGodcjEaSrCXFO9_SJuvzg","reason":{"type":"query_phase_execution_exception","reason":"Batch size is too large, size must be less than or equal to: [10000] but was [10029]. Scroll batch sizes cost as much memory as result windows so they are controlled by the [index.max_result_window] index level setting."}}],"caused_by":{"type":"query_phase_execution_exception","reason":"Batch size is too large, size must be less than or equal to: [10000] but was [10029]. Scroll batch sizes cost as much memory as result windows so they are controlled by the [index.max_result_window] index level setting."}},"status":500}).
here my code
Thank you in advance
The text was updated successfully, but these errors were encountered: