public class ScoreOrderFragmentsBuilder extends BaseFragmentsBuilder
| Modifier and Type | Class and Description |
|---|---|
static class |
ScoreOrderFragmentsBuilder.ScoreComparator |
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, getFields, getFieldValues, getFragmentSource, getFragmentSource, getFragmentSourceMSO, getMultiValuedSeparator, getPostTag, getPostTag, getPreTag, getPreTag, makeFragment, makeFragment, setMultiValuedSeparatorpublic 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