I tried to index a name field to elasticsearch, the name maybe is a string or a empty string(""), I want to search all name which contain the empty value, so I use the exists filter, but for exists filter, the empty value is not a null value.
https://www.elastic.co/guide/en/elasticsearch/reference/1.4/query-dsl-exists-filter.html
query dsl:
{ "filter" : {
"exists" : { "field" : "name" }
}
}
How to make the empty string as a null value for elasticsearch exist filter? Anyone has good idea?
"filter": {"missing" : { "field" : "name" }}