Solr's default sort is "score desc" not "score asc": http://wiki.apache.org/solr/CommonQueryParameters#sort

but apachesolr.module and Solr_Base_Query.php use "score asc" as the default. Am I missing something?

Comments

pwolanin’s picture

Hmm, yeah - basically we don't let you actually sort 'score asc' - the field is labeled as "Relevancy" so we prefer to show the "asc" icon.

jpmckinney’s picture

Okay... still, confusing to people who are working with the module. Maybe add a comment explaining why score is being sorted in the wrong direction (and explaining why it doesn't matter)?

jpmckinney’s picture

Status: Active » Fixed

Fixed. The "Relevancy" field doesn't show an icon, so there is no reason to set the default to "score asc", which is unnecessarily confusing. http://drupal.org/cvs?commit=359034

jpmckinney’s picture

Version: 6.x-1.0-rc2 » 6.x-2.x-dev
jpmckinney’s picture

Category: bug » task

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.