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
    System.Object
    FieldFragList
    SimpleFieldFragList
    WeightedFieldFragList
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Search.VectorHighlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public abstract class FieldFragList

    Constructors

    | Improve this Doc View Source

    FieldFragList(Int32)

    a constructor.

    Declaration
    protected FieldFragList(int fragCharSize)
    Parameters
    Type Name Description
    System.Int32 fragCharSize

    the length (number of chars) of a fragment

    Properties

    | Improve this Doc View Source

    FragInfos

    return the list of FieldFragList.WeightedFragInfos.

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

    Methods

    | Improve this Doc View Source

    Add(Int32, Int32, IList<FieldPhraseList.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
    System.Int32 startOffset

    start offset of the fragment

    System.Int32 endOffset

    end offset of the fragment

    System.Collections.Generic.IList<FieldPhraseList.WeightedPhraseInfo> phraseInfoList

    list of FieldPhraseList.WeightedPhraseInfo objects

    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.