Class FieldPhraseList.WeightedPhraseInfo
java.lang.Object
org.apache.lucene.search.vectorhighlight.FieldPhraseList.WeightedPhraseInfo
- All Implemented Interfaces:
Comparable<FieldPhraseList.WeightedPhraseInfo>
- Enclosing class:
- FieldPhraseList
public static class FieldPhraseList.WeightedPhraseInfo
extends Object
implements Comparable<FieldPhraseList.WeightedPhraseInfo>
Represents the list of term offsets and boost for some text
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Term offsets (start + end) -
Constructor Summary
ConstructorDescriptionMerging constructor.WeightedPhraseInfo
(LinkedList<FieldTermStack.TermInfo> terms, float boost) WeightedPhraseInfo
(LinkedList<FieldTermStack.TermInfo> terms, float boost, int seqnum) -
Method Summary
-
Constructor Details
-
WeightedPhraseInfo
-
WeightedPhraseInfo
-
WeightedPhraseInfo
Merging constructor. Note that this just grabs seqnum from the first info.
-
-
Method Details
-
getText
Text of the match, calculated on the fly. Use for debugging only.- Returns:
- the text
-
getTermsOffsets
- Returns:
- the termsOffsets
-
getBoost
public float getBoost()- Returns:
- the boost
-
getTermsInfos
- Returns:
- the termInfos
-
getStartOffset
public int getStartOffset() -
getEndOffset
public int getEndOffset() -
isOffsetOverlap
-
toString
-
getSeqnum
public int getSeqnum()- Returns:
- the seqnum
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FieldPhraseList.WeightedPhraseInfo>
-
hashCode
public int hashCode() -
equals
-