Low Search orderby...?
I'm trying to sort my search results like so:
{exp:low_search:results query="{segment_2}" orderby="low_search_score|entry_date" sort="desc|desc"}
...but this seems to only order by date. Is it possible to sort on the search score first and then date?
Thanks!
Matts
Replies
Low 3 Jan 2015 09:37
Right now, if you're ordering by low_search_score, that's the only thing you can order by.
Internally, LS sets the fixed_order parameter to make sure search results are ordered by score, but that will override anything that's in the orderby parameter.
Matts Härsing 3 Jan 2015 09:53
Ok, thanks!
It would be great to be able to add sort parameters in the future in the event that multiple entries get the same search score. Sorry if this has been covered before...
Low 3 Jan 2015 09:56
Noted. Down side is that it's only possible with at least one extra query.
Matts Härsing 3 Jan 2015 13:48
Well keep it in mind as an optional parameter if possible. Thanks for your great software!