Class IndriAndScorer


  • public class IndriAndScorer
    extends IndriDisjunctionScorer
    Combines scores of subscorers. If a subscorer does not contain the docId, a smoothing score is calculated for that document/subscorer combination.
    • Constructor Detail

      • IndriAndScorer

        protected IndriAndScorer​(Weight weight,
                                 java.util.List<Scorer> subScorers,
                                 ScoreMode scoreMode,
                                 float boost)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • score

        public float score​(java.util.List<Scorer> subScorers)
                    throws java.io.IOException
        Specified by:
        score in class IndriDisjunctionScorer
        Throws:
        java.io.IOException
      • smoothingScore

        public float smoothingScore​(java.util.List<Scorer> subScorers,
                                    int docId)
                             throws java.io.IOException
        Specified by:
        smoothingScore in class IndriDisjunctionScorer
        Throws:
        java.io.IOException
      • scoreDoc

        private float scoreDoc​(java.util.List<Scorer> subScorers,
                               int docId)
                        throws java.io.IOException
        Throws:
        java.io.IOException