public final class GeoPointDistanceRangeQuery extends GeoPointDistanceQuery
org.apache.lucene.search.GeoPointDistanceQuery
and is implemented using a
org.apache.lucene.search.BooleanClause.MUST_NOT
clause to exclude any points that fall within
minRadiusMeters from the provided point.Modifier and Type | Field and Description |
---|---|
protected double |
minRadiusMeters |
centerLat, centerLon, radiusMeters
Constructor and Description |
---|
GeoPointDistanceRangeQuery(String field,
double centerLon,
double centerLat,
double minRadiusMeters,
double maxRadius) |
Modifier and Type | Method and Description |
---|---|
double |
getMaxRadiusMeters() |
double |
getMinRadiusMeters() |
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
String |
toString(String field)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
equals, getCenterLat, getCenterLon, getRadiusMeters, hashCode
getField, getMaxLat, getMaxLon, getMinLat, getMinLon
public GeoPointDistanceRangeQuery(String field, double centerLon, double centerLat, double minRadiusMeters, double maxRadius)
public Query rewrite(IndexReader reader) throws IOException
Query
rewrite
in class GeoPointDistanceQuery
IOException
public String toString(String field)
Query
field
assumed to be the
default field and omitted.toString
in class GeoPointDistanceQuery
public double getMinRadiusMeters()
public double getMaxRadiusMeters()
Copyright © 2000-2018 The Apache Software Foundation. All Rights Reserved.