Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SingleFragListBuilder

    An implementation class of IFragListBuilder that generates one FieldFragList.WeightedFragInfo object. Typical use case of this class is that you can get an entire field contents by using both of this class and SimpleFragmentsBuilder.

    FastVectorHighlighter h = new FastVectorHighlighter( true, true,
               new SingleFragListBuilder(), new SimpleFragmentsBuilder() );
    Inheritance
    object
    SingleFragListBuilder
    Implements
    IFragListBuilder
    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.VectorHighlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public class SingleFragListBuilder : IFragListBuilder

    Methods

    CreateFieldFragList(FieldPhraseList, int)

    create a FieldFragList.

    Declaration
    public virtual FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize)
    Parameters
    Type Name Description
    FieldPhraseList fieldPhraseList

    FieldPhraseList object

    int fragCharSize

    the length (number of chars) of a fragment

    Returns
    Type Description
    FieldFragList

    the created FieldFragList object

    Implements

    IFragListBuilder
    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.