elasticsearch-cluster-runner
elasticsearch-cluster-runner copied to clipboard
Delete-by-query problem in 7.17.1
I try to use the 7.17.1 version and I have an error when doing 'delete-by-query':
Suppressed: org.elasticsearch.client.ResponseException: method [POST], host [http://127.0.0.1:9201], URI [/booking_index/_delete_by_query?slices=1&requests_per_second=-1&wait_for_completion=true&timeout=1m], status line [HTTP/1.1 400 Bad Request] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/booking_index/_delete_by_query] contains unrecognized parameters: [requests_per_second], [slices], [wait_for_completion]"}],"type":"illegal_argument_exception","reason":"request [/booking_index/_delete_by_query] contains unrecognized parameters: [requests_per_second], [slices], [wait_for_completion]"},"status":400}
I use rest-high-level-client 7.17.1 and I tried 7.17.4, but I get the same result.
Here is the code:
DeleteByQueryRequest request = new DeleteByQueryRequest(indexName); request.setQuery(QueryBuilders.matchAllQuery()); elasticSearchClient.deleteByQuery(request, RequestOptions.DEFAULT);
Can you, please, tell me where is the problem with those parameters? I tried the same query in a docker image and I did not have this problem. Thanks in advance, Cristi
Can anybody have a look at this issue, please?