Class WeightedTerm
java.lang.Object
org.apache.lucene.search.highlight.WeightedTerm
- Direct Known Subclasses:
WeightedSpanTerm
Lightweight class to hold term and a weight value used for scoring this term
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
WeightedTerm
-
-
Method Details
-
getTerm
- Returns:
- the term value (stemmed)
-
getWeight
public float getWeight()- Returns:
- the weight associated with this term
-
setTerm
- Parameters:
term
- the term value (stemmed)
-
setWeight
public void setWeight(float weight) - Parameters:
weight
- the weight associated with this term
-