Class SimpleFragmentsBuilder
- java.lang.Object
-
- org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
-
- org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder
-
- All Implemented Interfaces:
FragmentsBuilder
public class SimpleFragmentsBuilder extends BaseFragmentsBuilder
A simple implementation of FragmentsBuilder.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
COLORED_POST_TAGS, COLORED_PRE_TAGS
-
-
Constructor Summary
Constructors Constructor Description SimpleFragmentsBuilder()
a constructor.SimpleFragmentsBuilder(java.lang.String[] preTags, java.lang.String[] postTags)
a constructor.SimpleFragmentsBuilder(java.lang.String[] preTags, java.lang.String[] postTags, BoundaryScanner bs)
SimpleFragmentsBuilder(BoundaryScanner bs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<FieldFragList.WeightedFragInfo>
getWeightedFragInfoList(java.util.List<FieldFragList.WeightedFragInfo> src)
do nothing.-
Methods inherited from class org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
createFragment, createFragment, createFragments, createFragments, getMultiValuedSeparator, isDiscreteMultiValueHighlighting, setDiscreteMultiValueHighlighting, setMultiValuedSeparator
-
-
-
-
Constructor Detail
-
SimpleFragmentsBuilder
public SimpleFragmentsBuilder()
a constructor.
-
SimpleFragmentsBuilder
public SimpleFragmentsBuilder(java.lang.String[] preTags, java.lang.String[] postTags)
a constructor.- Parameters:
preTags
- array of pre-tags for markup terms.postTags
- array of post-tags for markup terms.
-
SimpleFragmentsBuilder
public SimpleFragmentsBuilder(BoundaryScanner bs)
-
SimpleFragmentsBuilder
public SimpleFragmentsBuilder(java.lang.String[] preTags, java.lang.String[] postTags, BoundaryScanner bs)
-
-
Method Detail
-
getWeightedFragInfoList
public java.util.List<FieldFragList.WeightedFragInfo> getWeightedFragInfoList(java.util.List<FieldFragList.WeightedFragInfo> src)
do nothing. return the source list.- Specified by:
getWeightedFragInfoList
in classBaseFragmentsBuilder
-
-