Create Elasticsearch curl query for not null and not empty(“”)
A null value and an empty string both result in no value being indexed, in which case you can use the exists filter curl -XGET ‘http://127.0.0.1:9200/test/test/_search?pretty=1’ -d ‘ { “query” : { “constant_score” : { “filter” : { “exists” : { “field” : “myfield” } } } } } ‘ Or in combination with (eg) … Read more