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
    System.Object
    Weight
    DisjunctionMaxQuery.DisjunctionMaxWeight
    Inherited Members
    Weight.GetBulkScorer(AtomicReaderContext, Boolean, IBits)
    Weight.ScoresDocsOutOfOrder
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    protected class DisjunctionMaxWeight : Weight

    Constructors

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    m_weights

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

    Declaration
    protected List<Weight> m_weights
    Field Value
    Type Description
    System.Collections.Generic.List<Weight>

    Properties

    | Improve this Doc View Source

    Query

    Return our associated DisjunctionMaxQuery

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

    Methods

    | Improve this Doc View Source

    Explain(AtomicReaderContext, Int32)

    Explain the score we computed for doc

    Declaration
    public override Explanation Explain(AtomicReaderContext context, int doc)
    Parameters
    Type Name Description
    AtomicReaderContext context
    System.Int32 doc
    Returns
    Type Description
    Explanation
    Overrides
    Weight.Explain(AtomicReaderContext, Int32)
    | Improve this Doc View Source

    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)
    | Improve this Doc View Source

    GetValueForNormalization()

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

    Declaration
    public override float GetValueForNormalization()
    Returns
    Type Description
    System.Single
    Overrides
    Weight.GetValueForNormalization()
    | Improve this Doc View Source

    Normalize(Single, Single)

    Apply the computed normalization factor to our subqueries

    Declaration
    public override void Normalize(float norm, float topLevelBoost)
    Parameters
    Type Name Description
    System.Single norm
    System.Single topLevelBoost
    Overrides
    Weight.Normalize(Single, Single)

    Extension Methods

    Number.IsNumber(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)