Class WeightedFieldFragList
- java.lang.Object
-
- org.apache.lucene.search.vectorhighlight.FieldFragList
-
- org.apache.lucene.search.vectorhighlight.WeightedFieldFragList
-
public class WeightedFieldFragList extends FieldFragList
A weighted implementation ofFieldFragList
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.vectorhighlight.FieldFragList
FieldFragList.WeightedFragInfo
-
-
Constructor Summary
Constructors Constructor Description WeightedFieldFragList(int fragCharSize)
a constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int startOffset, int endOffset, java.util.List<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
convert the list of WeightedPhraseInfo to WeightedFragInfo, then add it to the fragInfos-
Methods inherited from class org.apache.lucene.search.vectorhighlight.FieldFragList
getFragInfos
-
-
-
-
Method Detail
-
add
public void add(int startOffset, int endOffset, java.util.List<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
Description copied from class:FieldFragList
convert the list of WeightedPhraseInfo to WeightedFragInfo, then add it to the fragInfos- Specified by:
add
in classFieldFragList
- Parameters:
startOffset
- start offset of the fragmentendOffset
- end offset of the fragmentphraseInfoList
- list of WeightedPhraseInfo objects
-
-