Show / Hide Table of Contents

    Class SimpleSpanFragmenter

    IFragmenter implementation which breaks text up into same-size fragments but does not split up . This is a simple sample class.

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

    Constructors

    | Improve this Doc View Source

    SimpleSpanFragmenter(QueryScorer)

    Declaration
    public SimpleSpanFragmenter(QueryScorer queryScorer)
    Parameters
    Type Name Description
    QueryScorer queryScorer

    QueryScorer that was used to score hits

    | Improve this Doc View Source

    SimpleSpanFragmenter(QueryScorer, Int32)

    Declaration
    public SimpleSpanFragmenter(QueryScorer queryScorer, int fragmentSize)
    Parameters
    Type Name Description
    QueryScorer queryScorer

    QueryScorer that was used to score hits

    System.Int32 fragmentSize

    size in bytes of each fragment

    Methods

    | Improve this Doc View Source

    IsNewFragment()

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

    Start(String, TokenStream)

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

    Implements

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