Hey guys, I was wondering if Typesense if arbitrary sorting was possible in typesense!
The use case for this feature would be the following:
1. We’re currently using typesense to search and return ‘cards’ and their associated data in a kanban board
2. We want to allow the user to rearrange the order of the cards in each kanban column (think Trello)
3. We’d prefer to have to fetch the order of the cards in their respective columns in typesense
Is there a way to currently do this in typesense? @Jason Bosco@Kishore Nallan
(p.s., we’re one of those customers using Typesense as a ‘caching layer’ you
referred to in an interview▾
you did a while ago 😆)
k
Kishore Nallan
02/21/2022, 5:58 AM
👋 The order will be a value on the record right? For eg a card that's on the second position on a column will have a order value of 2 and so just sorting the results by this particular field is all that's needed.
Kishore Nallan
02/21/2022, 5:59 AM
What this means also is that when a card is reordered, the position value of the cards above/below the moved card in the column will have to be updated.
a
Alex Pan
02/21/2022, 6:12 AM
Thanks Kishore! Pinging in our co founders @kevin and @David Peng
k
kevin
02/21/2022, 6:43 AM
Thanks for the suggestion, we will look for this method.