actionml / universal-recommender

Highly configurable recommender based on PredictionIO and Mahout's Correlated Cross-Occurrence algorithm
http://actionml.com/universal-recommender
Apache License 2.0
669 stars 172 forks source link

Add support for deboost in queries #27

Closed slock83 closed 7 years ago

slock83 commented 7 years ago

This PR adds support to deboost fields in query using an additional (optional, non-breaking) parameter in the query : mode.

If not present or invalid, the old behavior is used. If set to deboost, the concerned field will be deboosted instead of boosted. See it as a "should not" in elasticsearch

pferrel commented 7 years ago

Deboost is already supported in queries.

biases between 0 and 1 will reduce the scores of any matches. See these docs: http://actionml.com/docs/ur_config#bias

Thanks for the PR, always happy for contributions. You can also start a conversation before you do the work so we can determine the needs and how to implement