lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danield <danield...@gmail.com>
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
IndexSearcher.explain().

However, I now find that when just calling IndexSearcher.search(), 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!!
Thanks!



--
View this message in context: http://lucene.472066.n3.nabble.com/BulkScorer-and-explain-compute-scores-separately-tp4185544.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message