org.apache.lucene.search

Class TotalHitCountCollector

    • Method Detail

      • getTotalHits

        public int getTotalHits()
        Returns how many hits matched the search.
      • needsScores

        public boolean needsScores()
        Description copied from interface: Collector
        Indicates if document scores are needed by this collector.
        Returns:
        true if scores are needed.