Why do you want to use mahout? I am not quit sure about your scenario , please provide more details.
From your description, I get the impression that you kind of want to recommend a static data . I mean all the content and harm sides are pre-populated and kept somewhere and then you fetch the info based on your search query. Is this the case? If yes , then I do not think you need Mahout for this. If this is not your case , please provide more details.
Mahout recommender is used for making analytical recommendations. For example mahout's Collaborative filtering recommendations are based on tuples. Using this you can make user-based (users similar to you searched XXX or bought YYYY) or item-based (people who searched TTT also searched ZZZZ) recommendations. There are also other types of recommendations that you can make using mahout but as I said before they all needs some input data and analysis.