Class TimeoutCountCollector

  • All Implemented Interfaces:
    org.apache.lucene.search.Collector, org.apache.lucene.search.LeafCollector

    public class TimeoutCountCollector
    extends org.apache.lucene.search.SimpleCollector
    Counts the total hit, as TotalHitCountCollector does. Moreover, it periodically checks for timeout.
    • Constructor Detail

      • TimeoutCountCollector

        public TimeoutCountCollector​(Deadline deadline)
    • Method Detail

      • getTotalHits

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

        public void collect​(int doc)
        Specified by:
        collect in interface org.apache.lucene.search.LeafCollector
        Specified by:
        collect in class org.apache.lucene.search.SimpleCollector
      • scoreMode

        public org.apache.lucene.search.ScoreMode scoreMode()