Class FacetsCollector.MatchingDocs

  • Enclosing class:
    FacetsCollector

    public static final class FacetsCollector.MatchingDocs
    extends Object
    Holds the documents that were matched in the LeafReaderContext. If scores were required, then scores is not null.
    • Field Detail

      • bits

        public final DocIdSet bits
        Which documents were seen.
      • scores

        public final float[] scores
        Non-sparse scores array.
      • totalHits

        public final int totalHits
        Total number of hits
    • Constructor Detail

      • MatchingDocs

        public MatchingDocs​(LeafReaderContext context,
                            DocIdSet bits,
                            int totalHits,
                            float[] scores)
        Sole constructor.