org.apache.lucene.search.vectorhighlight
Class SimpleFieldFragList
java.lang.Object
org.apache.lucene.search.vectorhighlight.FieldFragList
org.apache.lucene.search.vectorhighlight.SimpleFieldFragList
public class SimpleFieldFragList
- extends FieldFragList
A simple implementation of FieldFragList.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleFieldFragList
public SimpleFieldFragList(int fragCharSize)
- a constructor.
- Parameters:
fragCharSize - the length (number of chars) of a fragment
add
public void add(int startOffset,
int endOffset,
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 class FieldFragList
- Parameters:
startOffset - start offset of the fragmentendOffset - end offset of the fragmentphraseInfoList - list of WeightedPhraseInfo objects
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.