If you're using solr, things may work out of the box without using "classes".
https://cwiki.apache.org/confluence/display/solr/Function+Queries -Yonik On Thu, Oct 3, 2013 at 3:36 AM, Ankit Kumar <ankitthemight...@gmail.com> wrote: > In Lucene i need to add custom score using function query classes . How to > do it?