newLinearQuery

fun newLinearQuery(fieldName: String, featureName: String, weight: Float): Query

Return a new Query that will score documents as weight * S where S is the value of the static feature.

Parameters

fieldName

field that stores features

featureName

name of the feature

weight

weight to give to this feature, must be in (0,64]

Throws

if weight is not in (0,64]