winsoroaks
winsoroaks•15mo ago

this looks cool, can i pull it off with convex?

https://twitter.com/thdxr/status/1736780708759175487 hi team! im thinking of doing something similar to what was shared in the tweet above. i currently allow users to search by letting them type and hit search. on the backend, i do
searchInput === "" ? true : q.gte(q.field("name"), searchInput),
searchInput === ""
? true
: q.lt(q.field("name"), searchInput + "\uffff")
searchInput === "" ? true : q.gte(q.field("name"), searchInput),
searchInput === ""
? true
: q.lt(q.field("name"), searchInput + "\uffff")
maybe once prefix search is available? what do you think? thanks!
2 Replies
ballingt
ballingt•15mo ago
@winsoroaks hang in there for like 30 seconds... see #announcements! @winsoroaks this is a nice hack and will still work!
winsoroaks
winsoroaksOP•15mo ago
omg tom totally didnt see that coming !!!!! thank u so much all i want for xmas is prefix search 🎅

Did you find this page helpful?