I have address doc type which has city as field. The city field uses analyser
"keyword_analyzer": {
"tokenizer": "keyword", # So that we don't split multi word city name
"filter": ["lowercase"] # The search needs to case insensitive
}
How can I get any address which matches the give city 'X' or city is null. In sql it would be written as
SELECT * FROM address
WHERE city = 'X' or city IS NULL
I guess I have to use match query to get city ='X' and 'missing' filter to get city IS NULL. How can I combine this?