Class DisjunctionSumScorer


  • final class DisjunctionSumScorer
    extends DisjunctionScorer
    A Scorer for OR like queries, counterpart of ConjunctionScorer.
    • Constructor Detail

      • DisjunctionSumScorer

        DisjunctionSumScorer​(Weight weight,
                             java.util.List<Scorer> subScorers,
                             ScoreMode scoreMode)
                      throws java.io.IOException
        Construct a DisjunctionScorer.
        Parameters:
        weight - The weight to be used.
        subScorers - Array of at least two subscorers.
        Throws:
        java.io.IOException
    • Method Detail

      • score

        protected float score​(DisiWrapper topList)
                       throws java.io.IOException
        Description copied from class: DisjunctionScorer
        Compute the score for the given linked list of scorers.
        Specified by:
        score in class DisjunctionScorer
        Throws:
        java.io.IOException
      • getMaxScore

        public float getMaxScore​(int upTo)
                          throws java.io.IOException
        Description copied from class: Scorer
        Return the maximum score that documents between the last target that this iterator was shallow-advanced to included and upTo included.
        Specified by:
        getMaxScore in class Scorer
        Throws:
        java.io.IOException