Module
Rescore
Rescore ( windowSize, windowSize )
Defines an operation that rescores a query with another query.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | queryWeight(weight) | Sets the weight assigned to the original query of the rescoring. |
Object | rescoreQuery(someQuery) | Sets the query used by the rescoring. |
Object | rescoreQueryWeight(weight) | Sets the weight assigned to the query used to rescore the original query. |
Object | scoreMode(s) | Sets the scoring mode. Valid values are: total - default mode, the scores combined multiply - the scores multiplied min - the lowest of the scores max - the highest score avg - the average of the scores |
String | toJSON() | Retrieves the internal script object. This is typically used by
internal API functions so use with caution. |
Object | windowSize(size) | Sets the window_size parameter of the rescoring. |
Method Detail
queryWeight
Object queryWeight ( weight )
Sets the weight assigned to the original query of the rescoring.
|
rescoreQuery
Object rescoreQuery ( someQuery )
Sets the query used by the rescoring.
|
rescoreQueryWeight
Object rescoreQueryWeight ( weight )
Sets the weight assigned to the query used to rescore the original query.
|
scoreMode
Object scoreMode ( s )
Sets the scoring mode. Valid values are:
total - default mode, the scores combined
multiply - the scores multiplied
min - the lowest of the scores
max - the highest score
avg - the average of the scores
|
toJSON
String toJSON ( )
Retrieves the internal script object. This is typically used by
internal API functions so use with caution.
|
windowSize
Object windowSize ( size )
Sets the window_size parameter of the rescoring.
|