You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Raimon Bosch <ra...@gmail.com> on 2009/06/23 12:38:36 UTC
ScoreDocComparator to FieldComparator
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: ScoreDocComparator to FieldComparator
Posted by Michael McCandless <lu...@mikemccandless.com>.
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<ra...@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org