Package org.apache.lucene.spatial.tier
Class DistanceQueryBuilder
- java.lang.Object
-
- org.apache.lucene.spatial.tier.DistanceQueryBuilder
-
@Deprecated public class DistanceQueryBuilder extends Object
Deprecated.NOTE: This API is still in flux and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description DistanceQueryBuilder(double lat, double lng, double miles, String geoHashFieldPrefix, String tierFieldPrefix, boolean needPrecise, int minTierIndexed, int maxTierIndexed)Deprecated.Create a distance query using a boundary box wrapper around a more precise DistanceFilter.DistanceQueryBuilder(double lat, double lng, double miles, String latField, String lngField, String tierFieldPrefix, boolean needPrecise, int minTierIndexed, int maxTierIndexed)Deprecated.Create a distance query using a boundary box wrapper around a more precise DistanceFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DistanceFiltergetDistanceFilter()Deprecated.org.apache.lucene.search.FiltergetFilter()Deprecated.Create a distance query using a boundary box wrapper around a more precise DistanceFilter.org.apache.lucene.search.FiltergetFilter(org.apache.lucene.search.Query query)Deprecated.doublegetLat()Deprecated.doublegetLng()Deprecated.doublegetMiles()Deprecated.org.apache.lucene.search.QuerygetQuery(org.apache.lucene.search.Query query)Deprecated.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
DistanceQueryBuilder
public DistanceQueryBuilder(double lat, double lng, double miles, String latField, String lngField, String tierFieldPrefix, boolean needPrecise, int minTierIndexed, int maxTierIndexed)Deprecated.Create a distance query using a boundary box wrapper around a more precise DistanceFilter.- Parameters:
lat- The latitude to search aroundlng- the Longitude to search aroundmiles- The radius to search withinlatField- The name of the field containing the latitudelngField- The name of the field containing the longitudetierFieldPrefix- The prefix of the tierneedPrecise- if true, then distance is calculated in addition to tier infominTierIndexed- The minimum tier level indexedmaxTierIndexed- The maximum tier level indexed
-
DistanceQueryBuilder
public DistanceQueryBuilder(double lat, double lng, double miles, String geoHashFieldPrefix, String tierFieldPrefix, boolean needPrecise, int minTierIndexed, int maxTierIndexed)Deprecated.Create a distance query using a boundary box wrapper around a more precise DistanceFilter.- Parameters:
lat-lng-miles-
-
-
Method Detail
-
getFilter
public org.apache.lucene.search.Filter getFilter()
Deprecated.Create a distance query using a boundary box wrapper around a more precise DistanceFilter.
-
getFilter
public org.apache.lucene.search.Filter getFilter(org.apache.lucene.search.Query query)
Deprecated.
-
getDistanceFilter
public DistanceFilter getDistanceFilter()
Deprecated.
-
getQuery
public org.apache.lucene.search.Query getQuery(org.apache.lucene.search.Query query)
Deprecated.
-
getLat
public double getLat()
Deprecated.
-
getLng
public double getLng()
Deprecated.
-
getMiles
public double getMiles()
Deprecated.
-
-