Class FieldFragList
FieldFragList has a list of "frag info" that is used by IFragmentsBuilder class to create fragments (snippets).
Inherited Members
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 |