Skip to content

Commit

Permalink
Return null on invalid points
Browse files Browse the repository at this point in the history
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
  • Loading branch information
harshavamsi committed Jul 31, 2024
1 parent c49dd3e commit af6b001
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ public ScorerSupplier scorerSupplier(LeafReaderContext context) throws IOExcepti
LeafReader reader = context.reader();

PointValues values = reader.getPointValues(pointRangeQuery.getField());
if (checkValidPointValues(values) == false) {
return null;
}
final Weight weight = this;
if (size > values.size()) {
return pointRangeQueryWeight.scorerSupplier(context);
Expand Down

0 comments on commit af6b001

Please sign in to comment.