elasticsearch-cluster-runner icon indicating copy to clipboard operation
elasticsearch-cluster-runner copied to clipboard

Delete-by-query problem in 7.17.1

Open cristibozga opened this issue 3 years ago • 1 comments

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

cristibozga avatar Jun 30 '22 06:06 cristibozga

Can anybody have a look at this issue, please?

cristibozga avatar Jun 19 '23 10:06 cristibozga