{
"query": {
"match_none": {}
}
}
The match none query may sounds silly but is still usefull in some cases, I simply can't get it work using the elasticsearch-dsl-py library
s = Search.from_dict({
"query": {
"match_none": {}
}
})
will raise exception
UnknownDslObject: DSL class `match_none` does not exist in query.
Is there a way to work around this API
Thank you for the issue, I added the match_none. In the meantime you can just use ~Q('match_all') which should be the same and, with the new release, will become MatchNone().
@HonzaKral thank you so much :heart:
Most helpful comment
Thank you for the issue, I added the
match_none. In the meantime you can just use~Q('match_all')which should be the same and, with the new release, will becomeMatchNone().