Class MultiCollector.MinCompetitiveScoreAwareScorable

    • Field Detail

      • idx

        private final int idx
      • minScores

        private final float[] minScores
    • Constructor Detail

      • MinCompetitiveScoreAwareScorable

        MinCompetitiveScoreAwareScorable​(Scorable in,
                                         int idx,
                                         float[] minScores)
    • Method Detail

      • setMinCompetitiveScore

        public void setMinCompetitiveScore​(float minScore)
                                    throws java.io.IOException
        Description copied from class: Scorable
        Optional method: Tell the scorer that its iterator may safely ignore all documents whose score is less than the given minScore. This is a no-op by default.

        This method may only be called from collectors that use ScoreMode.TOP_SCORES, and successive calls may only set increasing values of minScore.

        Overrides:
        setMinCompetitiveScore in class Scorable
        Throws:
        java.io.IOException
      • minScore

        private float minScore()