-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.1
-
Component/s: modules/spatial
-
Labels:None
-
Lucene Fields:New
visitScanned can be implemented, allowing subclasses to specialize if desired.
protected void visitScanned(Cell cell) throws IOException { if (queryShape.relate(cell.getShape()).intersects()) { if (cell.isLeaf()) { visitLeaf(cell); } else { visit(cell); } } }
Then I can remove Intersect's impl, and remove the one prefix-tree faceting.
Additionally, I noticed collectDocs(FixBitSet) can be improved to take BitSet and call bitSet.or(docsEnum)