DeleteByQuery (ES5.0) using the Java API


I'm trying to use the newly added feature DeleteByQuery using the 5.0 Java Transport Client.
I could not find any documentation online.
All I came up with was referring to the old feature API and/or the external 2.x plugin, but the API seems to be quite different.
I'd really appreciate any sort of help.




(Alexander Reelsen) #3


how about to get started with

DeleteByQueryRequestBuilder requestBuilder = DeleteByQueryAction.INSTANCE.newRequestBuilder(client())



Thanks a bunch!
However, could you elaborate more? How do I set the query and how do I actually execute it?

I have to admit that it is not trivial to a new user :frowning:


Shameless bump!

(Alexander Reelsen) #6


take a look at the java classes in your IDE DeleteByQueryRequestBuilder and AbstractBulkByScrollRequestBuilder. You will find the filter method which allows you to register a query.


(system) #7

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