mirror of https://github.com/apache/lucene.git
implement grow() for polygon queries too: easy speedup.
This commit is contained in:
parent
45c48da54a
commit
0dc32e3d6b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue