Hi,

I'm using the query below in my search to find all users without parents.
The search works as expected, but delete by query fails with has_parent] 
query and filter unsupported in delete_by_query api

I've searched and it seems that it should be supported.

Anything that I'm missing?

{
  "query": {
    "bool": {
      "must": [
        {
          "term": {
            "user.service_id": "12345"
          }
        },
        {
          "filtered": {
            "filter": {
              "not": {
                "filter": {
                  "has_parent": {
                    "query": {
                      "match_all": {}
                    },
                    "parent_type": "account"
                  }
                }
              }
            }
          }
        }
      ]
    }
  }
}

-- 
Please update your bookmarks! We have moved to https://discuss.elastic.co/
--- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d57b6443-1221-4109-a654-1a36c3b05d70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to