Class SimpleFragListBuilder
- java.lang.Object
-
- org.apache.lucene.search.vectorhighlight.BaseFragListBuilder
-
- org.apache.lucene.search.vectorhighlight.SimpleFragListBuilder
-
- All Implemented Interfaces:
FragListBuilder
public class SimpleFragListBuilder extends BaseFragListBuilder
A simple implementation ofFragListBuilder
.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.vectorhighlight.BaseFragListBuilder
MARGIN_DEFAULT, MIN_FRAG_CHAR_SIZE_FACTOR
-
-
Constructor Summary
Constructors Constructor Description SimpleFragListBuilder()
SimpleFragListBuilder(int margin)
-
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.- Parameters:
fieldPhraseList
- FieldPhraseList objectfragCharSize
- the length (number of chars) of a fragment- Returns:
- the created FieldFragList object
-
-