I'm running a should
query with any empty list against an index. I'm expecting it to return 0 results since there are no should
queries/filters to match against:
(Syntax is Chewy but pretty close to regular ES)
OrganizationsIndex.filter(
bool: {
must: [
{
bool: {
should: [],
minimum_should_match: 1
}
}
]
})
However, it returns all the documents in the index. Is that expected behavior? Is there a way that I could make should: []
always return 0 documents?