DeleteByQuery (ES5.0) using the Java API


#1

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!


#2

Anyone?


(Alexander Reelsen) #3

Hey,

how about to get started with

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

--Alex


#4

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:


#5

Shameless bump!


(Alexander Reelsen) #6

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


(system) #7

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