lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan McKinley <>
Subject Re: Sorting problem
Date Wed, 07 Nov 2007 13:44:09 GMT
Yonik Seeley wrote:
> On 11/7/07, Ryan McKinley <> 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)


View raw message