I am using ultraspinx rails plugin in a project to handle the search module.
Sphinx uses more than one model for searching the content(for eg: Discussion and Comments). I need to sort the output by created at descending, which is available in both models. While searching in internet I found that we need to use the following options with sphinx search,
sort_by => 'updated_at'
sort_mode => 'descending'
With the above search option, I am getting a sorted search result per each model. I assume the sort filter is applied for each model separately, but I was expecting a result with sort filter applied to the final search result.
Is it possible to sort the search result of more than one model in sphinx by using created_at field?
Any help is highly appreciated.