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
    System.Object
    TextFragment
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.Search.Highlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public class TextFragment

    Constructors

    | Improve this Doc View Source

    TextFragment(StringBuilder, Int32, Int32)

    Declaration
    public TextFragment(StringBuilder markedUpText, int textStartPos, int fragNum)
    Parameters
    Type Name Description
    System.Text.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
    Overrides
    System.Object.ToString()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.