Hi all!
I'm currently using Elasticsearch 5.3. The query filter doesn't seem to work for me. If I understand correctly, the query below should return all documents with only the specified terms. However, I'm getting back documents with other terms. For example, status: 0.
{
"query": {
"filter":[
{"term": {"status": "requested"}},
{"term": {"status": "issued"}},
{"term": {"status": "rejected"}},
{"term": {"status": "revoked"}},
{"term": {"type": "identity"}},
{"term": {"type": "signature"}}
]
},
"size": 1000
}
Am I doing something wrong here?
Thanks!
Regards,
Wei Shan