org.apache.lucene.search.vectorhighlight
Class ScoreOrderFragmentsBuilder
java.lang.Object
org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder
- All Implemented Interfaces:
- FragmentsBuilder
public class ScoreOrderFragmentsBuilder
- extends BaseFragmentsBuilder
An implementation of FragmentsBuilder that outputs score-order fragments.
Methods inherited from class org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder |
createFragment, createFragment, createFragments, createFragments, getFields, getFieldValues, getFragmentSource, getFragmentSource, getMultiValuedSeparator, getPostTag, getPostTag, getPreTag, getPreTag, makeFragment, makeFragment, setMultiValuedSeparator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScoreOrderFragmentsBuilder
public ScoreOrderFragmentsBuilder()
- a constructor.
ScoreOrderFragmentsBuilder
public ScoreOrderFragmentsBuilder(String[] preTags,
String[] postTags)
- a constructor.
- Parameters:
preTags
- array of pre-tags for markup terms.postTags
- array of post-tags for markup terms.
getWeightedFragInfoList
public List<FieldFragList.WeightedFragInfo> getWeightedFragInfoList(List<FieldFragList.WeightedFragInfo> src)
- Sort by score the list of WeightedFragInfo
- Specified by:
getWeightedFragInfoList
in class BaseFragmentsBuilder
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.