From 0dc32e3d6b1a325f868980ae6fd8578af177ceb3 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sun, 24 Apr 2016 18:47:50 -0400 Subject: [PATCH] implement grow() for polygon queries too: easy speedup. --- .../apache/lucene/document/LatLonPointInPolygonQuery.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lucene/sandbox/src/java/org/apache/lucene/document/LatLonPointInPolygonQuery.java b/lucene/sandbox/src/java/org/apache/lucene/document/LatLonPointInPolygonQuery.java index 23a98d22c77..e68cb4579c6 100644 --- a/lucene/sandbox/src/java/org/apache/lucene/document/LatLonPointInPolygonQuery.java +++ b/lucene/sandbox/src/java/org/apache/lucene/document/LatLonPointInPolygonQuery.java @@ -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);