Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class TextFragment

    Low-level class used to record information about a section of a document with a score.

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

    Constructors

    TextFragment(StringBuilder, int, int)

    Low-level class used to record information about a section of a document with a score.

    Declaration
    public TextFragment(StringBuilder markedUpText, int textStartPos, int fragNum)
    Parameters
    Type Name Description
    StringBuilder markedUpText
    int textStartPos
    int fragNum

    Properties

    FragNum

    the fragment sequence number

    Declaration
    public virtual int FragNum { get; protected set; }
    Property Value
    Type Description
    int

    Score

    Low-level class used to record information about a section of a document with a score.

    Declaration
    public virtual float Score { get; protected set; }
    Property Value
    Type Description
    float

    Methods

    Follows(TextFragment)

    true if this fragment follows the one passed

    Declaration
    public virtual bool Follows(TextFragment fragment)
    Parameters
    Type Name Description
    TextFragment fragment
    Returns
    Type Description
    bool

    Merge(TextFragment)

    Low-level class used to record information about a section of a document with a score.

    Declaration
    public virtual void Merge(TextFragment frag2)
    Parameters
    Type Name Description
    TextFragment frag2

    Fragment to be merged into this one

    ToString()

    Returns the marked-up text for this text fragment

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    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.