Serializable
GeoHashDistanceFilter
, LatLongDistanceFilter
@Deprecated public abstract class DistanceFilter extends org.apache.lucene.search.Filter
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Modifier and Type | Field | Description |
---|---|---|
protected double |
distance |
Deprecated.
|
protected WeakHashMap<String,Double> |
distanceLookupCache |
Deprecated.
|
protected Map<Integer,Double> |
distances |
Deprecated.
|
protected int |
nextDocBase |
Deprecated.
|
protected DistanceHandler.Precision |
precise |
Deprecated.
|
protected org.apache.lucene.search.Filter |
startingFilter |
Deprecated.
|
Constructor | Description |
---|---|
DistanceFilter(org.apache.lucene.search.Filter startingFilter,
double distance) |
Deprecated.
Filters the startingFilter by precise distance
checking filter
|
Modifier and Type | Method | Description |
---|---|---|
abstract boolean |
equals(Object o) |
Deprecated.
Returns true if
o is equal to this. |
Double |
getDistance(int docid) |
Deprecated.
|
Map<Integer,Double> |
getDistances() |
Deprecated.
|
abstract int |
hashCode() |
Deprecated.
Returns a hash code value for this object.
|
void |
reset() |
Deprecated.
You must call this before re-using this DistanceFilter
across searches
|
void |
setDistances(Map<Integer,Double> distances) |
Deprecated.
|
protected final org.apache.lucene.search.Filter startingFilter
protected DistanceHandler.Precision precise
protected double distance
protected int nextDocBase
protected transient WeakHashMap<String,Double> distanceLookupCache
public DistanceFilter(org.apache.lucene.search.Filter startingFilter, double distance)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.