public class ScoreOrderFragmentsBuilder extends BaseFragmentsBuilder
Modifier and Type | Class and Description |
---|---|
static class |
ScoreOrderFragmentsBuilder.ScoreComparator
Comparator for
FieldFragList.WeightedFragInfo by boost, breaking ties
by offset. |
COLORED_POST_TAGS, COLORED_PRE_TAGS, postTags, preTags
Constructor and Description |
---|
ScoreOrderFragmentsBuilder()
a constructor.
|
ScoreOrderFragmentsBuilder(BoundaryScanner bs) |
ScoreOrderFragmentsBuilder(String[] preTags,
String[] postTags)
a constructor.
|
ScoreOrderFragmentsBuilder(String[] preTags,
String[] postTags,
BoundaryScanner bs) |
Modifier and Type | Method and Description |
---|---|
List<FieldFragList.WeightedFragInfo> |
getWeightedFragInfoList(List<FieldFragList.WeightedFragInfo> src)
Sort by score the list of WeightedFragInfo
|
createFragment, createFragment, createFragments, createFragments, discreteMultiValueHighlighting, getFields, getFragmentSource, getFragmentSourceMSO, getMultiValuedSeparator, getPostTag, getPostTag, getPreTag, getPreTag, isDiscreteMultiValueHighlighting, makeFragment, setDiscreteMultiValueHighlighting, setMultiValuedSeparator
public ScoreOrderFragmentsBuilder()
public ScoreOrderFragmentsBuilder(String[] preTags, String[] postTags)
preTags
- array of pre-tags for markup terms.postTags
- array of post-tags for markup terms.public ScoreOrderFragmentsBuilder(BoundaryScanner bs)
public ScoreOrderFragmentsBuilder(String[] preTags, String[] postTags, BoundaryScanner bs)
public List<FieldFragList.WeightedFragInfo> getWeightedFragInfoList(List<FieldFragList.WeightedFragInfo> src)
getWeightedFragInfoList
in class BaseFragmentsBuilder
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.