implement grow() for polygon queries too: easy speedup.

This commit is contained in:
Robert Muir 2016-04-24 18:47:50 -04:00
parent 45c48da54a
commit 0dc32e3d6b
1 changed files with 5 additions and 0 deletions

View File

@ -120,6 +120,11 @@ final class LatLonPointInPolygonQuery extends Query {
values.intersect(field,
new IntersectVisitor() {
@Override
public void grow(int count) {
result.grow(count);
}
@Override
public void visit(int docID) {
result.add(docID);