Sort on multiple fields with Site search API

Hi,

We are using the Swiftype Site search API and we would like to sort documents on multiple fields (of the same document type). The documentation page (Sorting | Swiftype Documentation) suggests that we can only sort on 1 field per document type. I'm suprised of this limitation and I would like to know if there is another way to do that with the Site search API ?

Thanks for your help :slight_smile:

Just a thought, could you index an additional field for sorting? It could be the combination of your primary sort field and secondary sort field:

sort: {fieldA}_{fieldB}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.