Hi,

I have the following use case:

  • 2 content types: contacts and documents
  • both of these content types are indexed in one single search api index (the default node index)
  • in the documents content type, I have a "Publication date" field which does not appear in the contacts content type
  • I have 1 view per content type: the contacts view displays all contacts coming from the search index, while the documents view displays all documents coming from the search index

My issue: I would like to have the documents view sorted by default by publication date and the contacts view sorted by default by Last name for example.

With the current implementation of search_api_sorts, this is not possible, given that search_api_sorts is bound to an index and can not be "overridden" by views. Would it be possible to add some settings to search_api_sorts to override the default settings through views ?

Comments

StryKaizer’s picture

Status: Active » Fixed

This is now default behaviour in 8.x, every "view" will show up as a separate search api display with separate configuration.

Status: Fixed » Closed (fixed)

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