Skip to main content

boosting

Function boosting 

Source
pub fn boosting<S>(
    positive: impl AsQuery<S>,
    negative: impl AsQuery<S>,
    negative_boost: f32,
) -> BoostingQuery<S>
Expand description

Keep documents matching positive, but demote (don’t exclude) those that also match negative by negative_boost (0.0–1.0).