I have no idea why, but 'score' doesn't seem to be available as a sort criteria when creating a Solr-based view using this module.

Anyway, failing the ability to define 'score' in the view, I think we should at the least ensure that the default sorting method for Solr-based views is 'score desc', when no other sorting criteria are defined.

Attached patch achieves this.

CommentFileSizeAuthor
apachesolr_views_defaultsort_scoredesc.patch752 bytesJaza
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

scalp’s picture

Works as intended. Thanks.

MiroslavBanov’s picture

Issue summary: View changes
Status: Needs review » Postponed (maintainer needs more info)

I think there is a score filter right now, and it was already available when this issue was created.

Moreover sorting by score desc is the default solr behavior when you don't add any sort parameter to the query. So it should already be working correctly, without the patch.

If there still is a problem, please describe the scenario or steps needed to reproduce it.

MiroslavBanov’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)