Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
jpountz committed May 19, 2015
1 parent 1bf7797 commit 3820142
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -25,6 +25,7 @@
import org.apache.lucene.document.FieldType;
import org.apache.lucene.index.IndexOptions;
import org.apache.lucene.index.Terms;
import org.apache.lucene.search.ConstantScoreQuery;
import org.apache.lucene.search.NumericRangeQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.util.BytesRef;
Expand Down Expand Up @@ -195,10 +196,7 @@ public Query nullValueFilter() {
if (nullValue == null) {
return null;
}
return NumericRangeQuery.newLongRange(names.indexName(), precisionStep,
nullValue,
nullValue,
true, true);
return new ConstantScoreQuery(termQuery(nullValue, null));
}

@Override
Expand Down

0 comments on commit 3820142

Please sign in to comment.