Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class WeightedSpanTerm

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

    Inheritance
    object
    WeightedTerm
    WeightedSpanTerm
    Inherited Members
    WeightedTerm.Term
    WeightedTerm.Weight
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Search.Highlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public class WeightedSpanTerm : WeightedTerm

    Constructors

    WeightedSpanTerm(float, string)

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

    Declaration
    public WeightedSpanTerm(float weight, string term)
    Parameters
    Type Name Description
    float weight
    string term

    WeightedSpanTerm(float, string, bool)

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

    Declaration
    public WeightedSpanTerm(float weight, string term, bool positionSensitive)
    Parameters
    Type Name Description
    float weight
    string term
    bool positionSensitive

    Properties

    IsPositionSensitive

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

    Declaration
    public virtual bool IsPositionSensitive { get; set; }
    Property Value
    Type Description
    bool

    PositionSpans

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

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

    Methods

    AddPositionSpans(IList<PositionSpan>)

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

    Declaration
    public virtual void AddPositionSpans(IList<PositionSpan> positionSpans)
    Parameters
    Type Name Description
    IList<PositionSpan> positionSpans

    CheckPosition(int)

    Checks to see if this term is valid at position.

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

    to check against valid term postions

    Returns
    Type Description
    bool

    true iff this term is a hit at this position

    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.