lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raimon Bosch <raimon.bo...@gmail.com>
Subject Relevance's scores on TopFieldCollector/FieldComparator
Date Thu, 09 Jul 2009 09:59:54 GMT

Hi,

I've just implemented my PseudoRandomFieldComparator (migrated from
PseudoRandomComparatorSource) on Solr. The problem that I see is that I
don't have acces to the relevance's scores like in the deprecated class
ComparatorSource.

I saw that the TopFieldCollector is filling the scorer of my
PseudoRandomFieldComparator, but the method scorer.score() is always
returning 0. It's like we pass correctly the scorer, but the scorer is
making reference to a wrong scores's array.

How can I have my relevance's scores on my PseudoRandomFieldComparator? Any
ideas?


Regards,
Raimon Bosch.
-- 
View this message in context: http://www.nabble.com/Relevance%27s-scores-on-TopFieldCollector-FieldComparator-tp24407379p24407379.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


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


Mime
View raw message