lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1709479 - in /lucene/dev/branches/branch_5x: ./ lucene/ lucene/sandbox/ lucene/sandbox/src/java/org/apache/lucene/search/GeoPointDistanceRangeQuery.java
Date Mon, 19 Oct 2015 21:12:40 GMT
Author: mikemccand
Date: Mon Oct 19 21:12:39 2015
New Revision: 1709479

URL: http://svn.apache.org/viewvc?rev=1709479&view=rev
Log:
LUCENE-6778: just use this.radius

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/lucene/   (props changed)
    lucene/dev/branches/branch_5x/lucene/sandbox/   (props changed)
    lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/search/GeoPointDistanceRangeQuery.java

Modified: lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/search/GeoPointDistanceRangeQuery.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/search/GeoPointDistanceRangeQuery.java?rev=1709479&r1=1709478&r2=1709479&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/search/GeoPointDistanceRangeQuery.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/search/GeoPointDistanceRangeQuery.java
Mon Oct 19 21:12:39 2015
@@ -49,15 +49,6 @@ public final class GeoPointDistanceRange
       return q;
     }
 
-    final double radius;
-    if (q instanceof BooleanQuery) {
-      final List<BooleanClause> clauses = ((BooleanQuery)q).clauses();
-      assert clauses.size() > 0;
-      radius = ((GeoPointDistanceQueryImpl)(clauses.get(0).getQuery())).getRadius();
-    } else {
-      radius = ((GeoPointDistanceQueryImpl)q).getRadius();
-    }
-
     // add an exclusion query
     BooleanQuery.Builder bqb = new BooleanQuery.Builder();
 



Mime
View raw message