Search code examples
myrrix

RescorerProvider filter element by tag


Is it possible to create a RescorerProvider to filter out elements which are associated with a specific tag? Or should I implement an own model with relevant data as in the book "mahout in action" on page 79?

Route: /recommend/?rescorerParams=sports
Push score of elements which are associated with tag sports


Solution

  • For this you would have to separately track which items are associated to which tags. This information is not queryable within the server itself. But you can periodically cache this info from an external source and then apply whatever logic you like based on tags. Yes, it is kind of like what's in Mahout in Action.