Hi,
Use FieldValueFilter for that:
http://lucene.apache.org/core/4_10_2/core/org/apache/lucene/search/FieldValueFilter.html
If you need a query instead of a Filter, wrap it with ConstantScoreQuery.
This is also much faster than a RangeQuery like suggested by Ahmed.
Uwe
-
Uwe Schindler
H.-H
Hi Sascha,
Generally RangeQuery is used for that, e.g. fieldName:[* TO *]
Ahmet
On Monday, December 1, 2014 9:44 PM, Sascha Janz wrote:
Hi,
is there a chance to add a additional clause to a query for a field that
should not be null ?
greetings
sascha
-