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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatReturns how connected this term is to the previous term in the query.floatThe degree to which this is exactly the term the user specified (1), or a stemmed form (closer to 0)floatgetTerm()intinthashCode()voidsetConnectedness(float connectedness) voidsetSignificance(float significance) The significance of this term: 1-term frequencyvoidvoidsetWeight(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
-