Rishabh Agrawal
04/18/2021, 10:18 PMJason Bosco
04/18/2021, 10:20 PMRishabh Agrawal
04/18/2021, 10:22 PMRishabh Agrawal
04/18/2021, 10:22 PMJason Bosco
04/18/2021, 10:24 PMRishabh Agrawal
04/18/2021, 10:25 PMRishabh Agrawal
04/18/2021, 10:25 PMRishabh Agrawal
04/18/2021, 10:29 PMRishabh Agrawal
04/18/2021, 10:29 PMJason Bosco
04/18/2021, 10:31 PMRishabh Agrawal
04/18/2021, 10:31 PMRishabh Agrawal
04/18/2021, 10:32 PMRishabh Agrawal
04/18/2021, 10:32 PMJason Bosco
04/18/2021, 10:32 PMjobDeadline:asc
. I don't see any overlapping jobDeadline values for the projectCreationTime:desc
to kick-in thoughRishabh Agrawal
04/18/2021, 10:34 PMJason Bosco
04/18/2021, 10:34 PMRishabh Agrawal
04/18/2021, 10:36 PMRishabh Agrawal
04/18/2021, 10:37 PMJason Bosco
04/18/2021, 10:37 PMRishabh Agrawal
04/18/2021, 10:37 PMRishabh Agrawal
04/18/2021, 10:38 PMRishabh Agrawal
04/18/2021, 10:39 PMJason Bosco
04/18/2021, 10:42 PMis there any way we can sort multiple field like i describedNo, but I'm trying to visualize how this would work. For every record, there needs to be a single value to know which ordered position to put it in, right?
Jason Bosco
04/18/2021, 10:43 PMRishabh Agrawal
04/18/2021, 10:44 PMJason Bosco
04/18/2021, 10:46 PMmeilisearch also doesn't support this. initially i though typesense do support this featureI don't think so either. But if you're referring to the comparison chart, what Meilisearch & Algolia do not support that Typesense supports, is support for dynamic sorting, as part of the search parameters. With Meilisearch & Algolia, you have to define the sort order upfront. With Typesense, you can sort on any integer fields on the fly at search time.
Rishabh Agrawal
04/18/2021, 10:47 PMRishabh Agrawal
04/18/2021, 10:51 PMRishabh Agrawal
04/18/2021, 10:51 PMJason Bosco
04/18/2021, 10:53 PM[{
"document": {
"id": "5bdb10bca52ece560e8a8a17",
"jobDeadline": 10,
"projectCreationTime": 1
},
},
{
"document": {
"id": "5bdb1278a52ece560e8a8a26",
"jobDeadline": 6,
"projectCreationTime": 5
},
},
{
"document": {
"id": "5bdb1235a52ece560e8a8a1c",
"jobDeadline": 9,
"projectCreationTime": 3
},
}]
How would you sort by jobDeadline:asc,projectCreationTime:desc
in the way you've described.Jason Bosco
04/18/2021, 10:53 PMRishabh Agrawal
04/18/2021, 10:54 PMJason Bosco
04/18/2021, 10:55 PMideally what i'm thinking is not doable.I think so too, not just in Typesense - but in general, with sorting as a concept. But I'm trying to see if I'm missing something obvious or the possibility of a new feature 🙂
Rishabh Agrawal
04/18/2021, 10:55 PM