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
    System.Object
    SimpleFragmenter
    Implements
    IFragmenter
    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)
    System.Object.ToString()
    Namespace: Lucene.Net.Search.Highlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public class SimpleFragmenter : 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
    Lucene.Net.Analysis.TokenStream stream

    Implements

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