Class DisjunctionMaxScorer


final class DisjunctionMaxScorer extends DisjunctionScorer
The Scorer for DisjunctionMaxQuery. The union of all documents generated by the subquery scorers is generated in document number order. The score for each document is the maximum of the scores computed by the subquery scorers that generate that document, plus tieBreakerMultiplier times the sum of the scores for the other subqueries that generate the document.
  • Field Details

  • Constructor Details

    • DisjunctionMaxScorer

      DisjunctionMaxScorer(float tieBreakerMultiplier, List<Scorer> subScorers, ScoreMode scoreMode) throws IOException
      Creates a new instance of DisjunctionMaxScorer
      Parameters:
      tieBreakerMultiplier - Multiplier applied to non-maximum-scoring subqueries for a document as they are summed into the result.
      subScorers - The sub scorers this Scorer should iterate on
      Throws:
      IOException
  • Method Details