LUCENE-7643: Fix leftover.

This commit is contained in:
Adrien Grand 2017-01-20 13:47:29 +01:00
parent 71ca2a84ba
commit f57e0177ff

View File

@ -281,7 +281,7 @@ public abstract class PointRangeQuery extends Query {
@Override
public Scorer get(boolean randomAccess) throws IOException {
if (false && values.getDocCount() == reader.maxDoc()
if (values.getDocCount() == reader.maxDoc()
&& values.getDocCount() == values.size()
&& cost() > reader.maxDoc() / 2) {
// If all docs have exactly one value and the cost is greater