Class FieldPhraseList
java.lang.Object
org.apache.lucene.search.vectorhighlight.FieldPhraseList
FieldPhraseList has a list of WeightedPhraseInfo that is used by FragListBuilder to create a
FieldFragList object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the list of term offsets and boost for some text -
Constructor Summary
ConstructorsConstructorDescriptionFieldPhraseList(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
Modifier and TypeMethodDescriptionvoidreturn the list of WeightedPhraseInfo.
-
Constructor Details
-
FieldPhraseList
create a FieldPhraseList that has no limit on the number of phrases to analyze- Parameters:
fieldTermStack- FieldTermStack objectfieldQuery- FieldQuery object
-
FieldPhraseList
a constructor.- Parameters:
fieldTermStack- FieldTermStack objectfieldQuery- FieldQuery objectphraseLimit- maximum size of phraseList
-
FieldPhraseList
Merging constructor.- Parameters:
toMerge- FieldPhraseLists to merge to build this one
-
-
Method Details
-
getPhraseList
return the list of WeightedPhraseInfo.- Returns:
- phraseList.
-
addIfNoOverlap
-