It Worked for me changing:
public void setScorer(Scorer scorer) {
this.scorer = new ScoreCachingWrappingScorer(scorer);
}
by
public void setScorer(Scorer scorer) {
this.scorer = scorer;
}
in my PseudoRandomFieldComparator.
Regards,
Raimon Bosch.
Raimon Bosch wrote:
>
> Hi,
>
> I've just implemented my PseudoRandomFieldComparator (migrated from
> PseudoRandomComparatorSource). The problem that I see is that I don't have
> acces to the relevance's scores like in the deprecated class
> ComparatorSource. I'm trying to fill the scores from my
> PseudoRandomComponent (in the process() method).
>
> I don't know if use a PseudoRandomComparator that extends from
> QueryComponent and then repeat the query or sth similar like reorder my
> doclist, or if use two diferent components QueryComponent and
> PseudoRandomComponent (extending from SearchComponent) and look for a good
> combination.
>
> How can I have my relevance scores on my PseudoRandomFieldComparator? Any
> ideas?
>
>
> Regards,
> Raimon Bosch.
>
--
View this message in context:
http://www.nabble.com/Using-relevance-scores-for-pseudo-random-probabilistic-ordenation-tp24392432p24409785.html
Sent from the Solr - User mailing list archive at Nabble.com.