title: In Lucene how do terms get used in calculating scores, can I override it with a CustomScoreQuery?
body: <p>Has someone successfully overridden the scoring of documents in a query so that the "relevancy" of a term to the field contents can be determined through one's own function? If so, was it by implementing a <a href="http://lucene.apache.org/java/2_3_2/api/org/apache/lucene/search/function/CustomScoreQuery.html" rel="nofollow noreferrer">CustomScoreQuery</a> and overriding the customScore(int, float, float)? I cannot seem to find a way to build either a custom sort or a custom scorer that can rank exact term matches much higher than other prefix term matches.  Any suggestions would be appreciated.</p>