I see... I believe you would have to rewrite major parts like DataModel, Similarities calculation, and so on and so on, to make that work. You can look at the Rescorer
which allows you to introduce your own logic and filter items out or boost some other items based on your requirements.
In chapter 5 of the Mahout in Action book there is an example of how to use the Rescorer
class. You can see the code here (link)