lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Sort problem
Date Mon, 16 Jul 2007 23:46:00 GMT

: I have read that the default sorting is by the "score desc".
: However when I ran the query, I get some erroneous results.
: This is the query I ran:
: solr include_in_directory_p:t AND active_p:t AND (in_shelves:(0777,1)^100
: OR in_groups:(02343^50 02345^30 abc xyz)); score desc

what version of Solr are you using?

The ";" syntax for specifying sort options has been deprecated, instead
you shoudl use a seperate "sort" param, but even if the "; score desc" was
being ignored, the default order should have still been sorted by score.

which response writer are you using?  have you looked at the raw response
from Solr and verified the order, or is this the order you see in your
client application?  (it's possible your client is slurping the results
into a data structure that doesn't rpeserve order)


View raw message