Deleting documents using terms query

Hi All,

I have scenario explained below,

We need to delete multiple documents from Elasticsearch based on a given field which contains unique values. So, in this I wanted to use terms query where we can provide multiple unique values for a field. Query as below.

"terms": {
"ids": [

Above query is deleting only first array value. Am I doing anything wrong in the above query.
Please help me on this.


Hello, any clues on this please.

Read this and specifically the "Also be patient" part.

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

What is the result when you run this query with _search?

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