Class Boolean2ScorerSupplier

    • Method Detail

      • computeCost

        private long computeCost()
      • getInternal

        private Scorer getInternal​(long leadCost)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • req

        private Scorer req​(java.util.Collection<ScorerSupplier> requiredNoScoring,
                           java.util.Collection<ScorerSupplier> requiredScoring,
                           long leadCost)
                    throws java.io.IOException
        Create a new scorer for the given required clauses. Note that requiredScoring is a subset of required containing required clauses that should participate in scoring.
        Throws:
        java.io.IOException
      • excl

        private Scorer excl​(Scorer main,
                            java.util.Collection<ScorerSupplier> prohibited,
                            long leadCost)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • opt

        private Scorer opt​(java.util.Collection<ScorerSupplier> optional,
                           int minShouldMatch,
                           ScoreMode scoreMode,
                           long leadCost)
                    throws java.io.IOException
        Throws:
        java.io.IOException