Class DisjunctionMaxQuery.DisjunctionMaxWeight

  • All Implemented Interfaces:
    Enclosing class:

    protected class DisjunctionMaxQuery.DisjunctionMaxWeight
    extends Weight
    Expert: the Weight for DisjunctionMaxQuery, used to normalize, score and explain these queries.

    NOTE: this API and implementation is subject to change suddenly in the next release.

    • Field Detail

      • weights

        protected final ArrayList<Weight> weights
        The Weights for our subqueries, in 1-1 correspondence with disjuncts
    • Constructor Detail

      • DisjunctionMaxWeight

        public DisjunctionMaxWeight​(IndexSearcher searcher,
                                    ScoreMode scoreMode,
                                    float boost)
                             throws IOException
        Construct the Weight for this Query searched by searcher. Recursively construct subquery weights.