You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jeff Lu <je...@gmail.com> on 2007/07/16 11:06:04 UTC

Sort problem

Hi,

I am new to using SOLR.
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

The results that I got showing only the score fields are (max score:
1.3632475) :

0.024525467
0.025497947
0.025497947
1.3632475
1.3632475
1.018946
1.018946
0.8851153
0.8851153
0.53433913
0.53433913
0.53433913
0.4291037
0.38232085

I seem to get the correct results after the max score: 1.3632475
I am just puzzled as to why the first 3 result scores are like that.

--
Regards,

Jeff

Re: Sort problem

Posted by Chris Hostetter <ho...@fucit.org>.
: 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)



-Hoss