The DistanceFilter type exposes the following members.

Methods

  NameDescription
Public methodBits Obsolete. (Inherited from Filter.)
Public methodEquals
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetDistance
Public methodGetDocIdSet
Creates a {@link DocIdSet} enumerating the documents that should be permitted in search results. NOTE: null can be returned if no documents are accepted by this Filter.

Note: This method will be called once per segment in the index during searching. The returned {@link DocIdSet} must refer to document IDs for that segment, not for the top-level reader. @param reader a {@link IndexReader} instance opened on the index currently searched on. Note, it is likely that the provided reader does not represent the whole underlying index i.e. if the index has more than one segment the given reader only represents a single segment.

(Inherited from Filter.)
Public methodGetHashCode
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
You must call this before re-using this DistanceFilter across searches
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also