The TopDocCollector type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| TopDocCollector(Int32) | Construct to collect a given number of hits. | |
| TopDocCollector(PriorityQueue) | Constructor to collect the top-scoring documents by using the given PQ. |
Methods
| Name | Description | |
|---|---|---|
| Collect | (Overrides HitCollector..::..Collect(Int32, Single).) | |
| 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.) | |
| GetTotalHits | The total number of documents that matched this query. | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| TopDocs | The top-scoring hits. | |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| hq | The priority queue which holds the top-scoring documents. | |
| totalHits | The total number of hits the collector encountered. |