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

becw’s picture

You 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?

becw’s picture

Status: Active » Postponed (maintainer needs more info)
anj’s picture

I 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.

jmdeleon’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (fixed)

Sorting using Search API Sorts module seems to work in the latest versions (as of 2015). Closing.