You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed we don't have a guide specifically for that on mobile, that's a good feedback and I'll make sure to add it as a task.
Now here is what you should do in order to achieve this:
For sorting, we recommend the following guide. Basically, the best way to deal with sorting is to create Algolia replicas indices that will have your data sorted in a particular way. In that way, you ensure that the performance of your query is lightning fast.
On the iOS side, what you'll have to do is:
1- Make sure you're in MultiIndex mode by following this guide.
2- When the user switches the sort mode, you just target the new replica index by changing the value of the index property that is found in the HitsTableWidget.
If you're not using widgets specifically, and just using a Searcher or Index, then what you'll have to do is change the value of the index there to reflect the new targeted replica index.
Is there an example of how to sort by a field? For example, sort by rating or sort by distance, etc. I can't seem to find an example.
The text was updated successfully, but these errors were encountered: