Skip to content

Commit

Permalink
Small BKD leaves encoded as CONTINUOUS_IDS so we must implement visit…
Browse files Browse the repository at this point in the history
…(int docID) of IntersectVisitor

Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Jul 29, 2024
1 parent fbbdc45 commit e37bd2c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ private static PointValues.IntersectVisitor getIntersectVisitor(RangeCollectorFo
return new PointValues.IntersectVisitor() {
@Override
public void visit(int docID) {
// this branch should be unreachable
throw new UnsupportedOperationException(
"This IntersectVisitor does not perform any actions on a " + "docID=" + docID + " node being visited"
);
collector.count(docID);
}

@Override
Expand Down

0 comments on commit e37bd2c

Please sign in to comment.