Delete_by_query using ES JAVA REST Client 6.0


(Neha Sharma) #1

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

(David Pilato) #2

Yes. See


(Neha Sharma) #3

@dadoonet Thanks!!!


(system) #4

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