public class GeoHashDistanceFilter extends DistanceFilter
NOTE: This API is still in flux and might change in incompatible ways in the next release.
distance, distanceLookupCache, distances, nextDocBase, precise, startingFilter
Constructor and Description |
---|
GeoHashDistanceFilter(org.apache.lucene.search.Filter startingFilter,
double lat,
double lng,
double miles,
java.lang.String geoHashField)
Provide a distance filter based from a center point with a radius
in miles
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if
o is equal to this. |
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.IndexReader reader) |
int |
hashCode()
Returns a hash code value for this object.
|
getDistance, getDistances, reset, setDistances
public GeoHashDistanceFilter(org.apache.lucene.search.Filter startingFilter, double lat, double lng, double miles, java.lang.String geoHashField)
startingFilter
- lat
- lng
- miles
- public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
getDocIdSet
in class org.apache.lucene.search.Filter
java.io.IOException
public boolean equals(java.lang.Object o)
o
is equal to this.equals
in class DistanceFilter
public int hashCode()
hashCode
in class DistanceFilter
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.