Show / Hide Table of Contents

    Interface IFragmenter

    Implements the policy for breaking text into multiple fragments for consideration by the Highlighter class. A sophisticated implementation may do this on the basis of detecting end of sentences in the text.

    Namespace: Lucene.Net.Search.Highlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public interface IFragmenter

    Methods

    | Improve this Doc View Source

    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
    bool IsNewFragment()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    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
    void Start(string originalText, TokenStream tokenStream)
    Parameters
    Type Name Description
    System.String originalText

    the original source text

    TokenStream tokenStream

    tokenStream the to be fragmented

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