lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan McKinley <ryan...@gmail.com>
Subject Re: Sorting problem
Date Wed, 07 Nov 2007 13:44:09 GMT
Yonik Seeley wrote:
> On 11/7/07, Ryan McKinley <ryantxu@gmail.com> wrote:
>> Yonik - do we want to keep this checking for 'null', or should we change
>> QueryParser.parseSort( ) to always return a valid sortSpec?
> 
> In Lucene, a null sort is not equal to "score desc"... they result in
> the same documents being returned, but the former takes a different
> code path and is faster.
> 

right, but solr QueryParsing.SortSpec holds a lucene Sort  -- in either 
case the lucene Sort object is null.

Since num & offset were added to SortSpec, it can't be null anymore (i 
don't think)

ryan

Mime
View raw message