How can i create Elasticsearch curl query to get the field value which are not null and not empty(\"\"),
Here is the mysql query:
select field1 from
You can do that with bool query and combination of must and must_not like this:
GET index/_search { "query": { "bool": { "must": [ {"exists": {"field": "field1"}} ], "must_not": [ {"term": {"field1": ""}} ] } } }
I tested this with Elasticsearch 5.6.5 in Kibana.