« Return to Thread: Using relevance scores for pseudo-random-probabilistic ordenation

Re: Using relevance scores for pseudo-random-probabilistic ordenation

by Raimon Bosch :: Rate this Message:

Reply to Author | View in Thread


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.

 « Return to Thread: Using relevance scores for pseudo-random-probabilistic ordenation