6.4.1: Delete By Query API

Hi,
I am using 6.4.1 APIs and need to know how does one 'delete by query' in this version. I have initialized my HighLevelRestClient using two coordinating nodes?
I don't want to use REST call, because i want to connect to my two coordinating nodes and i cannot do that in a REST call.

I understand that it is available on master or on later versions. But i need a way in 6.4.1.

Please help.

because i want to connect to my two coordinating nodes and i cannot do that in a REST call.

Why?

I have two coordinating nodes in my infrastructure. While searching and indexing we use RestHighLevelClient, and initialize it with 2 coordinating hosts.

My Delete by query is a normal rest call and it cannot accept two hosts http://:.
Previously i had only one coordinating node where above was possible.
Now i have 2 coord nodes, and i cannot hard code my url to either of them, just to be fail safe.

Once you have the HL Rest Client, you can always access to the lowLeveClient.

Just use this one and it will be connected to one or the other node.

Thats good idea. My bad, i didn't think of Low Level Client.

I can use lowLevelClient.performRequest() to make a call.

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