I have a query regarding null and blank ("") search. I want to get all the documents where a particular field is not blank ("") or not null. For e. g. i have field named field1, i want to get all those docs where field1 !=null or field1 !="".
I have specified keyword analyzer on field1 in mapping file and injected some data. suppose we query like following for blank values (we are looking for docs where field1=!"") -
The better approach probably is to use the 'exists' and 'missing' filters
within a filtered query:
On Monday, April 9, 2012 1:39:13 PM UTC+2, Kranti wrote:
Hi Team,
I have a query regarding null and blank ("") search. I want to get all the
documents where a particular field is not blank ("") or not null. For e. g.
i have field named field1, i want to get all those docs where field1 !=null
or field1 !="".
I have specified keyword analyzer on field1 in mapping file and injected
some data. suppose we query like following for blank values (we are looking
for docs where field1=!"") -
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.