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() );
Implements
Inherited Members
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 |