Class ReqExclScorer


class ReqExclScorer extends Scorer
A Scorer for queries with a required subscorer and an excluding (prohibited) sub Scorer.
  • Field Details

    • reqScorer

      private final Scorer reqScorer
    • reqApproximation

      private final DocIdSetIterator reqApproximation
    • exclApproximation

      private final DocIdSetIterator exclApproximation
    • reqTwoPhaseIterator

      private final TwoPhaseIterator reqTwoPhaseIterator
    • exclTwoPhaseIterator

      private final TwoPhaseIterator exclTwoPhaseIterator
    • ADVANCE_COST

      private static final int ADVANCE_COST
      Estimation of the number of operations required to call DISI.advance. This is likely completely wrong, especially given that the cost of this method usually depends on how far you want to advance, but it's probably better than nothing.
      See Also:
  • Constructor Details

    • ReqExclScorer

      public ReqExclScorer(Scorer reqScorer, Scorer exclScorer)
      Construct a ReqExclScorer.
      Parameters:
      reqScorer - The scorer that must match, except where
      exclScorer - indicates exclusion.
  • Method Details