mysociety / popit

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
76 stars 33 forks source link

can't search for missing / null date_of_birth #762

Open mhl opened 9 years ago

mhl commented 9 years ago

It looks from the Elasticsearch documentation as if one should be able to do a search like:

... to find all the people from whom birth_date is missing or null, since the documentation says:

where the field title has no value (or is missing)

... but that returns no results. Alternatively, one might hope that one of these would work:

... but neither do.

symroe commented 9 years ago

Another example here:

http://yournextmp.popit.mysociety.org/api/v0.1/search/persons?q=_missing_:proxy_image%20AND%20_exists_:standing_in.2015.post_id

The first result clearly has a proxy_image value.