Class QueryTerm
java.lang.Object
com.yahoo.searchlib.ranking.features.fieldmatch.QueryTerm
A query term. Query terms are equal if they have the same term string.
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
float
Returns how connected this term is to the previous term in the query.float
The degree to which this is exactly the term the user specified (1), or a stemmed form (closer to 0)float
getTerm()
int
int
hashCode()
void
setConnectedness
(float connectedness) void
setSignificance
(float significance) The significance of this term: 1-term frequencyvoid
void
setWeight
(int weight) toString()
-
Constructor Details
-
QueryTerm
-
QueryTerm
-
-
Method Details
-
setTerm
-
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) -
hashCode
public int hashCode() -
equals
-
toString
-