A {@link HitCollector} implementation that collects the top-scoring
/// documents, returning them as a {@link TopDocs}. This is used by {@link
/// IndexSearcher} to implement {@link 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.
///
///
public class TopDocCollector : HitCollector
{
private int numHits;
private float minScore = 0.0f;
internal int totalHits;
internal PriorityQueue hq;
///