Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class NullFragmenter

    IFragmenter implementation which does not fragment the text. This is useful for highlighting the entire content of a document or field.

    Inheritance
    object
    NullFragmenter
    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 NullFragmenter : IFragmenter

    Methods

    IsNewFragment()

    Test to see if this token from the stream should be held in a new TextFragment. Every time this is called, the TokenStream passed to Start(string, TokenStream) will have been incremented.

    Declaration
    public virtual bool IsNewFragment()
    Returns
    Type Description
    bool

    Start(string, TokenStream)

    Initializes the Fragmenter. You can grab references to the Attributes you are interested in from tokenStream and then access the values in IsNewFragment().

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

    the original source text

    TokenStream tokenStream

    tokenStream the Lucene.Net.Analysis.TokenStream to be fragmented

    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.