I have this query:
{
"query": {
"bool" : {
"filter" : {
"term" : { "status" : "404" }
},
"must_not":{
"term": {"url": "/server-status?auto="}
}
}
}
}
I want to retrieve all documents with status = 404, but not having url = "/server-status?auto="
However, docs with that url are still included in the results.