From e37bd2c8e5ed2badb4b0a0626228f31984aabf5d Mon Sep 17 00:00:00 2001 From: Finn Carroll Date: Mon, 29 Jul 2024 12:32:27 -0700 Subject: [PATCH] Small BKD leaves encoded as CONTINUOUS_IDS so we must implement visit(int docID) of IntersectVisitor Signed-off-by: Finn Carroll --- .../search/optimization/filterrewrite/TreeTraversal.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/src/main/java/org/opensearch/search/optimization/filterrewrite/TreeTraversal.java b/server/src/main/java/org/opensearch/search/optimization/filterrewrite/TreeTraversal.java index bf3d1a408eb42..2f57e981baf7f 100644 --- a/server/src/main/java/org/opensearch/search/optimization/filterrewrite/TreeTraversal.java +++ b/server/src/main/java/org/opensearch/search/optimization/filterrewrite/TreeTraversal.java @@ -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