Apache Lucene.Net 2.4.0 Class Library API

Hits Methods

The methods of the Hits class are listed below. For a complete list of Hits class members, see the Hits Members topic.

Public Instance Methods

Doc 
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
IdReturns 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}.
LengthReturns the total number of hits available in this set.
ScoreReturns the score for the nth document in this set.
ToString (inherited from Object)Returns a String that represents the current Object.

See Also

Hits Class | Lucene.Net.Search Namespace