Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SimpleSpanFragmenter

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

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

    Constructors

    SimpleSpanFragmenter(QueryScorer)

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

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

    QueryScorer that was used to score hits

    SimpleSpanFragmenter(QueryScorer, int)

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

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

    QueryScorer that was used to score hits

    int fragmentSize

    size in bytes of each fragment

    Methods

    IsNewFragment()

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

    Declaration
    public virtual bool IsNewFragment()
    Returns
    Type Description
    bool
    See Also
    IsNewFragment()

    Start(string, TokenStream)

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

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

    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.