@Deprecated public abstract class DistanceFilter extends Filter
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Modifier and Type | Field and 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 Filter |
startingFilter
Deprecated.
|
Constructor and Description |
---|
DistanceFilter(Filter startingFilter,
double distance)
Deprecated.
Filters the startingFilter by precise distance
checking filter
|
Modifier and Type | Method and 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.
|
getDocIdSet
protected final Filter startingFilter
protected DistanceHandler.Precision precise
protected double distance
protected int nextDocBase
protected transient WeakHashMap<String,Double> distanceLookupCache
public DistanceFilter(Filter startingFilter, double distance)