Closed Saboteur777 closed 4 years ago
I don't understand. Aren't the second and third examples the same thing?
@darylknight No, they are different queries: the first orders the results by their relevancy score, the second orders the results by their postDate and their custom field's value (in descending and ascending orders, respectively), and the third orders the results by their relevancy score and their postDate.
They are effectively the same, but the third is not possible right now. (confirmed by @angrybrad)
FFR: score
: https://craftcms.com/docs/3.x/searching.html#ordering-results-by-score
It wouldn’t be possible to mix them, as score
is a special case, which is actually sorted by PHP code rather than by the DB.
Description
It would be beneficial if we could sort search results by additional parameters alongside their score. Right now you can do this:
OR this:
But not this: