Show / Hide Table of Contents

    Class SimpleFragmenter

    IFragmenter implementation which breaks text up into same-size fragments with no concerns over spotting sentence boundaries.

    Inheritance
    System.Object
    SimpleFragmenter
    Implements
    IFragmenter
    Namespace: Lucene.Net.Search.Highlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public class SimpleFragmenter : object, IFragmenter

    Constructors

    | Improve this Doc View Source

    SimpleFragmenter()

    Declaration
    public SimpleFragmenter()
    | Improve this Doc View Source

    SimpleFragmenter(Int32)

    Declaration
    public SimpleFragmenter(int fragmentSize)
    Parameters
    Type Name Description
    System.Int32 fragmentSize

    size in number of characters of each fragment

    Properties

    | Improve this Doc View Source

    FragmentSize

    Gets or Sets size in number of characters of each fragment

    Declaration
    public virtual int FragmentSize { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    IsNewFragment()

    IsNewFragment()
    Declaration
    public virtual bool IsNewFragment()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Start(String, TokenStream)

    Start(String, TokenStream)
    Declaration
    public virtual void Start(string originalText, TokenStream stream)
    Parameters
    Type Name Description
    System.String originalText
    TokenStream stream

    Implements

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