Show / Hide Table of Contents

    Class TextFragment

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

    Inheritance
    System.Object
    TextFragment
    Namespace: Lucene.Net.Search.Highlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public class TextFragment : object

    Constructors

    | Improve this Doc View Source

    TextFragment(StringBuilder, Int32, Int32)

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

    Properties

    | Improve this Doc View Source

    FragNum

    the fragment sequence number

    Declaration
    public virtual int FragNum { get; protected set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Score

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

    Methods

    | Improve this Doc View Source

    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
    System.Boolean
    | Improve this Doc View Source

    Merge(TextFragment)

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

    Fragment to be merged into this one

    | Improve this Doc View Source

    ToString()

    Returns the marked-up text for this text fragment

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)