mirror of https://github.com/apache/lucene.git
LUCENE-7449: Fix bug in RangeFieldQuery.scorer
This commit is contained in:
parent
bd459c1275
commit
907c43ce7a
|
@ -171,8 +171,8 @@ abstract class RangeFieldQuery extends Query {
|
|||
// if query crosses, docs need to be further scrutinized
|
||||
byte[] range = getInternalRange(values.getMinPackedValue(), values.getMaxPackedValue());
|
||||
// if the internal node is not equal and not contained by the query, all docs do not match
|
||||
if ((!Arrays.equals(ranges, range)
|
||||
&& (target.contains(range) && queryType != QueryType.CONTAINS)) == false) {
|
||||
if (!Arrays.equals(ranges, range)
|
||||
&& (!target.contains(range) || queryType != QueryType.WITHIN)) {
|
||||
allDocsMatch = false;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue