On 4/12/07, Thierry Collogne <[EMAIL PROTECTED]> wrote:
Hello,

I am trying to do a searchquery with sorting on multiple files, but I can't
get it to work.
I want to search first on a date, and if results have the same date, I want
them sorted by title.

This is my query :

         q=content%3Atest;date+desc,title+asc

When I try a sort just on date it works, also just on title is fine, but
when I try to sort on both at the same time, only the sort on date is
performed.

Anyone an idea?

Sorting works on indexed tokens, and hence doesn't really work on
analyzed fields that produce more than one token per document.  I
suspect your title field falls into that category.  You could also
index the title field into another field that is indexed as a string
(non-tokenized), but that might take up a lot of memory if you have
long titles.


-Yonik

Reply via email to