由于不可能更新elasticsearch版本,因此我不得不找到另一个解决方案。这对我有用:
"query": { "bool": { "must_not" : [ { "query": { "bool": { "must": [ { "term": {"bool-facet.criteria1": false } }, { "term": {"bool-facet.criteria2": false } } ] } } } ] }}


