It seems this is exactly what i need. From this tutorial
http://www.solrtutorial.com/custom-solr-functionquery.html
it would seem the main thing that i have to do is implement
a DocValues class which gets (Map context, IndexReader reader)
and provides methods which return a score for the document
I have a question about integrating custom functionality into Solr.
What i want is the following scenario:
1. A query is issued to Solr
2. Solr uses my custom method to calculate the score (relevance) of each
document with respect to the query.
3. the results are returned sorted by desce