Show / Hide Table of Contents

    Class SpanWeight

    Expert-only. Public for use by other weight implementations

    Inheritance
    System.Object
    Weight
    SpanWeight
    PayloadNearQuery.PayloadNearSpanWeight
    PayloadTermQuery.PayloadTermWeight
    Inherited Members
    Weight.GetBulkScorer(AtomicReaderContext, Boolean, IBits)
    Weight.ScoresDocsOutOfOrder
    Namespace: Lucene.Net.Search.Spans
    Assembly: Lucene.Net.dll
    Syntax
    public class SpanWeight : Weight

    Constructors

    | Improve this Doc View Source

    SpanWeight(SpanQuery, IndexSearcher)

    Declaration
    public SpanWeight(SpanQuery query, IndexSearcher searcher)
    Parameters
    Type Name Description
    SpanQuery query
    IndexSearcher searcher

    Fields

    | Improve this Doc View Source

    m_query

    Declaration
    protected SpanQuery m_query
    Field Value
    Type Description
    SpanQuery
    | Improve this Doc View Source

    m_similarity

    Declaration
    protected Similarity m_similarity
    Field Value
    Type Description
    Similarity
    | Improve this Doc View Source

    m_stats

    Declaration
    protected Similarity.SimWeight m_stats
    Field Value
    Type Description
    Similarity.SimWeight
    | Improve this Doc View Source

    m_termContexts

    Declaration
    protected IDictionary<Term, TermContext> m_termContexts
    Field Value
    Type Description
    IDictionary<Term, TermContext>

    Properties

    | Improve this Doc View Source

    Query

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

    Methods

    | Improve this Doc View Source

    Explain(AtomicReaderContext, Int32)

    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)

    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()

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

    Normalize(Single, Single)

    Declaration
    public override void Normalize(float queryNorm, float topLevelBoost)
    Parameters
    Type Name Description
    System.Single queryNorm
    System.Single topLevelBoost
    Overrides
    Weight.Normalize(Single, Single)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)