Class SingleFragListBuilder
- java.lang.Object
-
- org.apache.lucene.search.vectorhighlight.SingleFragListBuilder
-
- All Implemented Interfaces:
FragListBuilder
public class SingleFragListBuilder extends Object implements FragListBuilder
An implementation class ofFragListBuilderthat generates oneFieldFragList.WeightedFragInfoobject. Typical use case of this class is that you can get an entire field contents by using both of this class andSimpleFragmentsBuilder.FastVectorHighlighter h = new FastVectorHighlighter( true, true, new SingleFragListBuilder(), new SimpleFragmentsBuilder() );
-
-
Constructor Summary
Constructors Constructor Description SingleFragListBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldFragListcreateFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize)create a FieldFragList.
-
-
-
Method Detail
-
createFieldFragList
public FieldFragList createFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize)
Description copied from interface:FragListBuildercreate a FieldFragList.- Specified by:
createFieldFragListin interfaceFragListBuilder- Parameters:
fieldPhraseList- FieldPhraseList objectfragCharSize- the length (number of chars) of a fragment- Returns:
- the created FieldFragList object
-
-