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