QueryParsing.parseSort() can handle sorts on multiple fields.
The SortSpec.getSort() returns a Lucene Sort object, and that can
represent a sort on multiple fields.

-Yonik

On 4/7/06, jason rutherglen <[EMAIL PROTECTED]> wrote:
> I see this in StandardRequestHandler.  However I am wondering if there are 
> multiple sorts, where in Solr is this handled?  Thanks.
>
> ------------------------------------------
>
> // If the first non-query, non-filter command is a simple sort on an indexed 
> field, then
>       // we can use the Lucene sort ability.
>       Sort sort = null;
>       if (commands.size() >= 2) {
>         QueryParsing.SortSpec sortSpec = 
> QueryParsing.parseSort(commands.get(1), req.getSchema());
>         if (sortSpec != null) {
>           sort = sortSpec.getSort();
>           // ignore the count for now... it's currently only controlled by 
> start & limit on req
>           // count = sortSpec.getCount();
>         }
>       }

Reply via email to