Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class DisjunctionMaxQuery.DisjunctionMaxWeight

    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.

    Inheritance
    object
    Weight
    DisjunctionMaxQuery.DisjunctionMaxWeight
    Inherited Members
    Weight.GetBulkScorer(AtomicReaderContext, bool, IBits)
    Weight.ScoresDocsOutOfOrder
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    protected class DisjunctionMaxQuery.DisjunctionMaxWeight : Weight

    Constructors

    DisjunctionMaxWeight(DisjunctionMaxQuery, IndexSearcher)

    Construct the Weight for this Query searched by searcher. Recursively construct subquery weights.

    Declaration
    public DisjunctionMaxWeight(DisjunctionMaxQuery outerInstance, IndexSearcher searcher)
    Parameters
    Type Name Description
    DisjunctionMaxQuery outerInstance
    IndexSearcher searcher

    Fields

    m_weights

    The Weights for our subqueries, in 1-1 correspondence with disjuncts

    Declaration
    protected IList<Weight> m_weights
    Field Value
    Type Description
    IList<Weight>

    Properties

    Query

    Return our associated DisjunctionMaxQuery

    Declaration
    public override Query Query { get; }
    Property Value
    Type Description
    Query
    Overrides
    Weight.Query

    Methods

    Explain(AtomicReaderContext, int)

    Explain the score we computed for doc

    Declaration
    public override Explanation Explain(AtomicReaderContext context, int doc)
    Parameters
    Type Name Description
    AtomicReaderContext context
    int doc
    Returns
    Type Description
    Explanation
    Overrides
    Weight.Explain(AtomicReaderContext, int)

    GetScorer(AtomicReaderContext, IBits)

    Create the scorer used to score our associated DisjunctionMaxQuery

    Declaration
    public override Scorer GetScorer(AtomicReaderContext context, IBits acceptDocs)
    Parameters
    Type Name Description
    AtomicReaderContext context
    IBits acceptDocs
    Returns
    Type Description
    Scorer
    Overrides
    Weight.GetScorer(AtomicReaderContext, IBits)

    GetValueForNormalization()

    Compute the sub of squared weights of us applied to our subqueries. Used for normalization.

    Declaration
    public override float GetValueForNormalization()
    Returns
    Type Description
    float
    Overrides
    Weight.GetValueForNormalization()

    Normalize(float, float)

    Apply the computed normalization factor to our subqueries

    Declaration
    public override void Normalize(float norm, float topLevelBoost)
    Parameters
    Type Name Description
    float norm
    float topLevelBoost
    Overrides
    Weight.Normalize(float, float)
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.