Resolving `randomInt` Sorting Error in Flutter
TLDR Andrew was unable to sort field randomInt
resulting in an error. Kishore Nallan resolved the issue by suggesting to add randomInt
to the schema.
Powered by Struct AI
3
14mo
Solved
Oct 28, 2022 (14 months ago)
Andrew
Andrew
04:34 AMHey guys, getting an error. I have a field, randomInt, that im trying to sort by. Im using
But its spitting out the error
Any idea whats going on with this? Im on flutter if that makes any difference.
'sort_by': 'randomInt:asc',
But its spitting out the error
"Could not find a field named `randomInt` in the schema for sorting."
Any idea whats going on with this? Im on flutter if that makes any difference.
Kishore Nallan
Kishore Nallan
05:00 AMWhen you created the collection, did you add
randomInt
to the schema?Andrew
Andrew
04:50 PMLooks like that did it, thanks!
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3011 threads (79% resolved)
Similar Threads
Sorting by Boolean Values in Typesense
Andrew sought to sort documents by Boolean value in Typesense. Jason indicated this is possible from `v0.24.0.rcn25` and recommended an upgrade for Typesense Cloud users.
6
14mo
Solved
Sorting Issue in Typesense Schema
Keith had issues sorting by the field 'year' after changing its type to a string. Jason clarified that Typesense currently only supports numeric sorting and offered a workaround.
13
25mo
Solved
Sorting Issue with Typesense 0.23.0 and 'title' Field
Stefanie struggles to sort ascendingly with the 'title' in Typesense 0.23.0, where Kishore Nallan replies with questions and insight, though the problem isn't solved.
3
18mo