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