Dante
Dante

Reputation: 13

SOLR/Lucene: How would one go about extending the Scorer class s.t. it could then be wrapped in a Solr plugin

The reason I am asking this, is because extending the Similarity class or using query function is not enough for me. I plan to personalize user queries in terms of their preferences with respect to document fields. I need to update the score of the documents after the text based scoring has been computed using these preferences (which would have been cached by the Solr plugin). Any thoughts?

Upvotes: 1

Views: 337

Answers (1)

Mauricio Scheffer
Mauricio Scheffer

Reputation: 99750

I'd write a custom function query, it fits your definition of modifying the calculated score with a custom algorithm.

Upvotes: 1

Related Questions