Hi,
I am using JAVA Rest client 6.0 and looking for _delete_by_query API implementation. Rest client support is not present. org.elasticsearch.client.ElasticsearchClient is not implemented by REST client.
BulkByScrollResponse response =
DeleteByQueryAction.INSTANCE.newRequestBuilder( client)
.filter(QueryBuilders.matchAllQuery())
.source(index)
.get();