The Hits type exposes the following members.
Methods
Name | Description | |
---|---|---|
Doc | Returns the stored fields of the nth document in this set.
Documents are cached, so that repeated requests for the same element may
return the same Document object.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Id | Returns the id for the nth document in this set.
Note that ids may change when the index changes, so you cannot
rely on the id to be stable.
| |
Iterator | Returns a {@link HitIterator} to navigate the Hits. Each item returned
from {@link Iterator#next()} is a {@link Hit}.
Caution: Iterate only over the hits needed. Iterating over all
hits is generally not desirable and may be the source of
performance issues. If you need to iterate over many or all hits, consider
using a search method that takes a {@link HitCollector}.
| |
Length | Returns the total number of hits available in this set. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Score | Returns the score for the nth document in this set. | |
ToString | (Inherited from Object.) |