Class TopScoreDocCollector.PagingTopScoreDocCollector

    • Field Detail

      • collectedHits

        private int collectedHits
    • Method Detail

      • newTopDocs

        protected TopDocs newTopDocs​(ScoreDoc[] results,
                                     int start)
        Description copied from class: TopDocsCollector
        Returns a TopDocs instance containing the given results. If results is null it means there are no results to return, either because there were 0 calls to collect() or because the arguments to topDocs were invalid.
        Overrides:
        newTopDocs in class TopScoreDocCollector
      • getLeafCollector

        public LeafCollector getLeafCollector​(LeafReaderContext context)
                                       throws java.io.IOException
        Description copied from interface: Collector
        Create a new collector to collect the given context.
        Parameters:
        context - next atomic reader context
        Throws:
        java.io.IOException