A
HitCollector implementation that collects the top-scoring
documents, returning them as a
TopDocs . This is used by
IndexSearcher to implement
TopDocs -based search.
This may be extended, overriding the collect method to, e.g.,
conditionally invoke super() in order to filter which
documents are collected.