The TopDocsCollector type exposes the following members.

Fields

  NameDescription
Protected fieldStatic memberEMPTY_TOPDOCS
Protected fieldpq
The priority queue which holds the top documents. Note that different implementations of PriorityQueue give different meaning to 'top documents'. HitQueue for example aggregates the top scoring documents, while other PQ implementations may hold documents sorted by other criteria.
Protected fieldtotalHits
The total number of documents that the collector encountered.

See Also