Hello,

     What I am trying to do is build a personalized search engine. The aim
is to have the resulting documents' scores depend on users' preferences.
I've already built some Solr plugins (request handlers mainly), however I am
not sure that what I am trying to do can be achieved by a plugin.
In short, for each query, for each document, I would like to multiply the
relevance score of each document(at scoring time of course) by the result of
a function between some of document's fields values and the user's
preferences (these users preferences will most likely be loaded in memory
when the plugin initializes). Of course, I need a new request handler to
take the userID as a query parameter, but I am not sure on how to access
each document at scoring time in order to update the score based on
his preferences. Any ideas? (I have looked over
this<http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/package-summary.html#scoring>
and after
looking at the code as well, it doesn't look so trivial ... has anybody else
tried something similar?)

Cheers,
Dante

Reply via email to