I have a query that looks like this (using Elasticsearch DSL v0.0.11)
s = s.filter(
'or',
[
F('term', hide_from_search=False),
F('not', filter=F('exists', field='hide_from_search')),
]
)
How would I write that using v2.x? When the F
function has gone?
With the Q
function somehow?
You can do it like this:
Or even simpler like this: