mirror of https://github.com/apache/lucene.git
LUCENE-6778: just use this.radius
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1709478 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
06ef8111bd
commit
27c07ec8e3
|
@ -45,15 +45,6 @@ public final class GeoPointDistanceRangeQuery extends GeoPointDistanceQuery {
|
||||||
return q;
|
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
|
// add an exclusion query
|
||||||
BooleanQuery.Builder bqb = new BooleanQuery.Builder();
|
BooleanQuery.Builder bqb = new BooleanQuery.Builder();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue