Show / Hide Table of Contents

    Class WeightedSpanTerm

    Lightweight class to hold term, weight, and positions used for scoring this term.

    Inheritance
    System.Object
    WeightedTerm
    WeightedSpanTerm
    Inherited Members
    WeightedTerm.Term
    WeightedTerm.Weight
    Namespace: Lucene.Net.Search.Highlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public class WeightedSpanTerm : WeightedTerm

    Constructors

    | Improve this Doc View Source

    WeightedSpanTerm(Single, String)

    Declaration
    public WeightedSpanTerm(float weight, string term)
    Parameters
    Type Name Description
    System.Single weight
    System.String term
    | Improve this Doc View Source

    WeightedSpanTerm(Single, String, Boolean)

    Declaration
    public WeightedSpanTerm(float weight, string term, bool positionSensitive)
    Parameters
    Type Name Description
    System.Single weight
    System.String term
    System.Boolean positionSensitive

    Properties

    | Improve this Doc View Source

    IsPositionSensitive

    Declaration
    public virtual bool IsPositionSensitive { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    PositionSpans

    Declaration
    public virtual IList<PositionSpan> PositionSpans { get; }
    Property Value
    Type Description
    IList<PositionSpan>

    Methods

    | Improve this Doc View Source

    AddPositionSpans(IList<PositionSpan>)

    Declaration
    public virtual void AddPositionSpans(IList<PositionSpan> positionSpans)
    Parameters
    Type Name Description
    IList<PositionSpan> positionSpans
    | Improve this Doc View Source

    CheckPosition(Int32)

    Checks to see if this term is valid at position.

    Declaration
    public virtual bool CheckPosition(int position)
    Parameters
    Type Name Description
    System.Int32 position

    to check against valid term postions

    Returns
    Type Description
    System.Boolean

    true iff this term is a hit at this position

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)