You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2016/04/25 00:48:20 UTC

lucene-solr:master: implement grow() for polygon queries too: easy speedup.

Repository: lucene-solr
Updated Branches:
  refs/heads/master 45c48da54 -> 0dc32e3d6


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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/0dc32e3d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/0dc32e3d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/0dc32e3d

Branch: refs/heads/master
Commit: 0dc32e3d6b1a325f868980ae6fd8578af177ceb3
Parents: 45c48da
Author: Robert Muir <rm...@apache.org>
Authored: Sun Apr 24 18:47:50 2016 -0400
Committer: Robert Muir <rm...@apache.org>
Committed: Sun Apr 24 18:47:50 2016 -0400

----------------------------------------------------------------------
 .../org/apache/lucene/document/LatLonPointInPolygonQuery.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/0dc32e3d/lucene/sandbox/src/java/org/apache/lucene/document/LatLonPointInPolygonQuery.java
----------------------------------------------------------------------
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 23a98d2..e68cb45 100644
--- a/lucene/sandbox/src/java/org/apache/lucene/document/LatLonPointInPolygonQuery.java
+++ b/lucene/sandbox/src/java/org/apache/lucene/document/LatLonPointInPolygonQuery.java
@@ -121,6 +121,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);
                            }