I am using Java High level client i have done delete index by using indices and by id but i need to delete more than one document using condition. HOW DO I PERFORM THIS. there is any methods to do this?
Use the delete by query API.
I have go through that in that we can delete using field and value like this
request.setQuery(new TermQueryBuilder("user", "kimchy"));
but i need to delete using this condition age < 20; how can delete like this?
Add a different type of query than the example shows.
I cannot understand..can u give me a small snippet of it?example
Have a look at the different query builders and the Elasticsearch docs.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.