DeleteByQuery (ES5.0) using the Java API

Hello,
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.

Thanks!

Anyone?

Hey,

how about to get started with

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

--Alex

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!

Hey,

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.

--Alex

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