Class FieldPhraseList
- java.lang.Object
-
- org.apache.lucene.search.vectorhighlight.FieldPhraseList
-
public class FieldPhraseList extends java.lang.Object
FieldPhraseList has a list of WeightedPhraseInfo that is used by FragListBuilder to create a FieldFragList object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldPhraseList.WeightedPhraseInfo
Represents the list of term offsets and boost for some text
-
Constructor Summary
Constructors Constructor Description FieldPhraseList(FieldPhraseList[] toMerge)
Merging constructor.FieldPhraseList(FieldTermStack fieldTermStack, FieldQuery fieldQuery)
create a FieldPhraseList that has no limit on the number of phrases to analyzeFieldPhraseList(FieldTermStack fieldTermStack, FieldQuery fieldQuery, int phraseLimit)
a constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIfNoOverlap(FieldPhraseList.WeightedPhraseInfo wpi)
java.util.List<FieldPhraseList.WeightedPhraseInfo>
getPhraseList()
return the list of WeightedPhraseInfo.
-
-
-
Constructor Detail
-
FieldPhraseList
public FieldPhraseList(FieldTermStack fieldTermStack, FieldQuery fieldQuery)
create a FieldPhraseList that has no limit on the number of phrases to analyze- Parameters:
fieldTermStack
- FieldTermStack objectfieldQuery
- FieldQuery object
-
FieldPhraseList
public FieldPhraseList(FieldTermStack fieldTermStack, FieldQuery fieldQuery, int phraseLimit)
a constructor.- Parameters:
fieldTermStack
- FieldTermStack objectfieldQuery
- FieldQuery objectphraseLimit
- maximum size of phraseList
-
FieldPhraseList
public FieldPhraseList(FieldPhraseList[] toMerge)
Merging constructor.- Parameters:
toMerge
- FieldPhraseLists to merge to build this one
-
-
Method Detail
-
getPhraseList
public java.util.List<FieldPhraseList.WeightedPhraseInfo> getPhraseList()
return the list of WeightedPhraseInfo.- Returns:
- phraseList.
-
addIfNoOverlap
public void addIfNoOverlap(FieldPhraseList.WeightedPhraseInfo wpi)
-
-