I did something like this in low-level Lucene using
FieldSortedHitQueue. The searchable lucene users
list should have more details.

Don't know how to do it in SOLR though...

Erick

On Jan 11, 2008 1:04 PM, Jörg Kiegeland <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I have a query of the form (a or b).
>
> Documents matching this query are returned in the order how many
> conditions are actually fullfilled.
> E.g.
>
> 1. doc matching a and b
> 2. doc matching a and b
> 3. doc matching a
> 4. doc matching a
> 5. doc matching a
> 6. doc matching b
>
> Now I want, that within groups (1.+2.)  and  (3.+4.+5+6..), items shall
> be ordered by a field. However defining a sorting field (via
> addSortField()) performs a global sort, not considering my primary sort
> criteria (namely how many conditions match).
> Can one do a sort within these groups?
>

Reply via email to