public final class GeoPointDistanceRangeQuery extends GeoPointDistanceQuery
org.apache.lucene.spatial.geopoint.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, radiusMetersfield, maxLat, maxLon, minLat, minLon, termEncoding| Constructor and Description |
|---|
GeoPointDistanceRangeQuery(String field,
double centerLon,
double centerLat,
double minRadiusMeters,
double maxRadiusMeters)
Constructs a query for all
GeoPointField types within a minimum / maximum
distance (in meters) range from a given point |
GeoPointDistanceRangeQuery(String field,
GeoPointField.TermEncoding termEncoding,
double centerLon,
double centerLat,
double minRadiusMeters,
double maxRadius) |
| Modifier and Type | Method and Description |
|---|---|
double |
getMaxRadiusMeters()
getter method for maximum distance
|
double |
getMinRadiusMeters()
getter method for minimum distance
|
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, hashCodegetField, getMaxLat, getMaxLon, getMinLat, getMinLonpublic GeoPointDistanceRangeQuery(String field, double centerLon, double centerLat, double minRadiusMeters, double maxRadiusMeters)
GeoPointField types within a minimum / maximum
distance (in meters) range from a given pointpublic GeoPointDistanceRangeQuery(String field, GeoPointField.TermEncoding termEncoding, double centerLon, double centerLat, double minRadiusMeters, double maxRadius)
public Query rewrite(IndexReader reader) throws IOException
Queryrewrite in class GeoPointDistanceQueryIOExceptionpublic String toString(String field)
Queryfield assumed to be the
default field and omitted.toString in class GeoPointDistanceQuerypublic double getMinRadiusMeters()
public double getMaxRadiusMeters()
Copyright © 2000–2016 The Apache Software Foundation. All rights reserved.