Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

implement grow() for spatial3d intersector: easy speedup

Robert Muire3e9114921da
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java
index d4e730999dc..cf94c35b2c9 100644
--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java
+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/PointInShapeIntersectVisitor.java
@@ -38,6 +38,11 @@ class PointInShapeIntersectVisitor implements IntersectVisitor {
this.shapeBounds = shapeBounds;
}
+ @Override
+ public void grow(int count) {
+ hits.grow(count);
+ }
+
@Override
public void visit(int docID) {
hits.add(docID);