Class QueryTerm
- java.lang.Object
-
- com.yahoo.searchlib.ranking.features.fieldmatch.QueryTerm
-
public final class QueryTerm extends Object
A query term. Query terms are equal if they have the same term string.- Author:
- bratseth
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
float
getConnectedness()
Returns how connected this term is to the previous term in the query.float
getExactness()
The degree to which this is exactly the term the user specified (1), or a stemmed form (closer to 0)float
getSignificance()
String
getTerm()
int
getWeight()
int
hashCode()
void
setConnectedness(float connectedness)
void
setSignificance(float significance)
The significance of this term: 1-term frequencyvoid
setTerm(String term)
void
setWeight(int weight)
String
toString()
-
-
-
Method Detail
-
setTerm
public void setTerm(String term)
-
getTerm
public String getTerm()
-
getConnectedness
public float getConnectedness()
Returns how connected this term is to the previous term in the query. Default: 0.1. This is always a number between 0 (not connected at all) and 1 (virtually inseparable)
-
setConnectedness
public void setConnectedness(float connectedness)
-
setWeight
public void setWeight(int weight)
-
getWeight
public int getWeight()
-
setSignificance
public void setSignificance(float significance)
The significance of this term: 1-term frequency
-
getSignificance
public float getSignificance()
-
getExactness
public float getExactness()
The degree to which this is exactly the term the user specified (1), or a stemmed form (closer to 0)
-
-