Probably starting from RelevanceComparator (in FieldComparator.java, in Lucene's sources) is a good starting point?
Basically you have to hold onto the scorer, and ask it for the score of each doc, and then record the scores (& docIDs, and anything else you need to do your comparison) privately. Mike On Tue, Jun 23, 2009 at 6:38 AM, Raimon Bosch<raimon.bo...@gmail.com> wrote: > > > Hi! > > We are doing a migration from ScoreDocComparator to FieldComparator in order > to get better performance and try its new features. I was wondering how we > can acces to ScoreDoc's of a document inside FieldComparator. Can we use > FieldComparator as ScoreDocComparator? > > Thanks in advance, > Raimon Bosch. > -- > View this message in context: > http://www.nabble.com/ScoreDocComparator-to-FieldComparator-tp24163558p24163558.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org