lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danield <>
Subject BulkScorer and .explain() compute scores separately?
Date Wed, 11 Feb 2015 00:13:31 GMT
I have subclassed the BooleanQuery and changed the BooleanWeight constructor
to change the way the /coord/ and /idf /components of the similiarity
formula are computed, and my changes work as expected when calling

However, I now find that when just calling, the
scores reported for each document and resulting ranking are quite different
from what .explain() shows me.

What is going on? Clearly scores are computed somewhere else when done by
BulkScorer and not in BooleanQuery.BooleanWeight(). 

I have been looking at the code but it's mighty confusing and I still
haven't figured out how to make the same changes on this pipeline.

Please help!!

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message