Fork me on GitHub
  • API

    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
    object
    SimpleFragmenter
    Implements
    IFragmenter
    Inherited Members
    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 SimpleFragmenter : IFragmenter

    Constructors

    SimpleFragmenter()

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

    Declaration
    public SimpleFragmenter()

    SimpleFragmenter(int)

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

    Declaration
    public SimpleFragmenter(int fragmentSize)
    Parameters
    Type Name Description
    int fragmentSize

    size in number of characters of each fragment

    Properties

    FragmentSize

    Gets or Sets size in number of characters of each fragment

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

    Methods

    IsNewFragment()

    IsNewFragment()

    Declaration
    public virtual bool IsNewFragment()
    Returns
    Type Description
    bool

    Start(string, TokenStream)

    Start(string, TokenStream)

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

    Implements

    IFragmenter
    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.