Class Query
java.lang.Object
com.yahoo.searchlib.ranking.features.fieldmatch.Query
A query: An array of the QueryTerms which searches the field we are calculating for,
In addition the sum of the term weights of all the query terms can be set explicitly. This allows us to model the matchWeight rank feature of a field as dependent of the weights of all the terms in the query.
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTerms()
Returns the query terms we are calculating features offloat
Returns the total term significance for this query.int
Returns the total term weight for this query.void
setTotalSignificance
(float totalSignificance) void
setTotalTermWeight
(int totalTermWeight) toString()
-
Constructor Details
-
Query
-
Query
Creates a query with a list of query terms. The query terms are not, and must not be subsequently modified
-
-
Method Details
-
getTerms
Returns the query terms we are calculating features of -
getTotalTermWeight
public int getTotalTermWeight()Returns the total term weight for this query. This is the sum of the weights of the terms if not set explicitly, or if set explicitly a higher number which also models a query which also has terms going to other indexes. -
setTotalTermWeight
public void setTotalTermWeight(int totalTermWeight) -
getTotalSignificance
public float getTotalSignificance()Returns the total term significance for this query. This is the sum of the significance of the terms if not set explicitly, or if set explicitly a higher number which also models a query which also has terms going to other indexes. -
setTotalSignificance
public void setTotalSignificance(float totalSignificance) -
toString
-