Query for absence of field

I would like to index some document with a field, isActive = true, and then
later query for documents that have this field = false or that do not have
the field at all. Can I query for documents that are absent values for a
given field?

Are you looking for the missing filter ?

HTH
David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 24 avr. 2012 à 23:15, aaron atdixon@gmail.com a écrit :

I would like to index some document with a field, isActive = true, and then later query for documents that have this field = false or that do not have the field at all. Can I query for documents that are absent values for a given field?

Thank you!

On Tuesday, April 24, 2012 4:36:57 PM UTC-5, David Pilato wrote:

Are you looking for the missing filter ?

Elasticsearch Platform — Find real-time answers at scale | Elastic

HTH
David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 24 avr. 2012 à 23:15, aaron <> a écrit :

I would like to index some document with a field, isActive = true, and
then later query for documents that have this field = false or that do not
have the field at all. Can I query for documents that are absent values for
a given field?