Exposing scoring factors upstream

Hello,

I am trying to expose the factors used by Lucene in scoring upstream without using the explain functionality. Specifically, I wanted to expose the term frequency, the inverse document frequency and the matched token length in the case of a prefix query, by annotating each result with its corresponding factors. I looked at the Lucene SimilarityBase and Scorer classes, but they don't seem to allow adding anything to the result. The explain functionality seems expensive to do this.

Is this possible? If so, can someone provide pointers on this?

Thanks,
Rajesh

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.