Delete_by_query using ES JAVA REST Client 6.0

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();

Yes. See

@dadoonet Thanks!!!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.