Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi folks,
I have been trying to figure out how to perform a sort through Sarnia. Can anyone help me out and let me know how the URL must be formed in order to include sort parameters? Thanks for your help.
Mitch
Comments
Comment #1
becw CreditAttribution: becw commentedYou can add a sort similar to how you add a solr property field to a view: add the Sarnia data field, then select the solr property. It's pretty much the same as any other Views sort... or are the things that you expect not showing up in the Sarnia "Solr property" dropdown?
Comment #2
becw CreditAttribution: becw commentedComment #3
anj CreditAttribution: anj commentedI have found that the latest version of Sarnia does not allow fields to show up as sortable (under search_api_sorts) because the field types are all set to Indexed, even when they are String, for example. It seems the logic that guesses the type relies on the indexing status rather than querying the schema.
Comment #4
jmdeleon CreditAttribution: jmdeleon commentedSorting using Search API Sorts module seems to work in the latest versions (as of 2015). Closing.