In SQL, we can perform the following in the where clause:
SELECT * FROM tbl WHERE :parameter <> '' OR :parameter is not null
Is this possible in Elasticsearch to check if the input parameter/value is not null or empty? I checked the exists query but the parameter is a field, not a parameter.
Thanks for you reply. Just for follow up for context, I need to modify the existing dsl query such that I need to ensure that the ${userId1} is not empty using terms lookup:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.