Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FieldFragList

    FieldFragList has a list of "frag info" that is used by IFragmentsBuilder class to create fragments (snippets).

    Inheritance
    object
    FieldFragList
    SimpleFieldFragList
    WeightedFieldFragList
    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 abstract class FieldFragList

    Constructors

    FieldFragList(int)

    a constructor.

    Declaration
    protected FieldFragList(int fragCharSize)
    Parameters
    Type Name Description
    int fragCharSize

    the length (number of chars) of a fragment

    Properties

    FragInfos

    return the list of FieldFragList.WeightedFragInfos.

    Declaration
    public virtual IList<FieldFragList.WeightedFragInfo> FragInfos { get; }
    Property Value
    Type Description
    IList<FieldFragList.WeightedFragInfo>

    Methods

    Add(int, int, IList<WeightedPhraseInfo>)

    convert the list of FieldPhraseList.WeightedPhraseInfo to FieldFragList.WeightedFragInfo, then add it to the fragInfos

    Declaration
    public abstract void Add(int startOffset, int endOffset, IList<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
    Parameters
    Type Name Description
    int startOffset

    start offset of the fragment

    int endOffset

    end offset of the fragment

    IList<FieldPhraseList.WeightedPhraseInfo> phraseInfoList

    list of FieldPhraseList.WeightedPhraseInfo objects

    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.