lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3191) Add TopDocs.merge to merge multiple TopDocs
Date Wed, 15 Jun 2011 18:08:47 GMT


Uwe Schindler commented on LUCENE-3191:

I think this has less impact on users. Two user types:

- People using FieldDoc.fields[] would always cast the return type, so a simple recompile
should be fine
- People writing own FieldComparators must change return value of getValue() and maybe add
generics (not required)
- People that dont implement compareValue() will be also fine, as the default impl casts to
Comparable and that will have the same behaviour

The 3.x impl just have to fix FieldDocSortedHitQueue to use compareValue() and remove the
negation for scores.

> Add TopDocs.merge to merge multiple TopDocs
> -------------------------------------------
>                 Key: LUCENE-3191
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 3.3, 4.0
>         Attachments: LUCENE-3191.patch, LUCENE-3191.patch, LUCENE-3191.patch, LUCENE-3191.patch
> It's not easy today to merge TopDocs, eg produced by multiple shards,
> supporting arbitrary Sort.

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message