Class SingleFragListBuilder
- java.lang.Object
-
- org.apache.lucene.search.vectorhighlight.SingleFragListBuilder
-
- All Implemented Interfaces:
FragListBuilder
public class SingleFragListBuilder extends java.lang.Object implements FragListBuilder
An implementation class ofFragListBuilder
that generates oneFieldFragList.WeightedFragInfo
object. 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 FieldFragList
createFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize)
create a FieldFragList.
-
-
-
Method Detail
-
createFieldFragList
public FieldFragList createFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize)
Description copied from interface:FragListBuilder
create a FieldFragList.- Specified by:
createFieldFragList
in interfaceFragListBuilder
- Parameters:
fieldPhraseList
- FieldPhraseList objectfragCharSize
- the length (number of chars) of a fragment- Returns:
- the created FieldFragList object
-
-