Heyyy first time playing around with supabase! Wha...
# off-topic
d
Heyyy first time playing around with supabase! What like the best way to implement search ??
g
That is way too vague a question. All depends on what kind of data you are searching, what type of columns it is in, how precise your search needs to be, where you are doing the search from, etc. From javascript you will normally use some sort of filters: https://supabase.com/docs/reference/javascript/using-filters https://supabase.com/docs/guides/database/full-text-search
s
As Gary said, it's a very broad question. There's many ways to search data, and without having some more details, it's impossible to recommend the right solutions. With that said, we did have a discussion on different methods of searching across columns back in October: https://discord.com/channels/839993398554656828/903770142465466408
d
I tried tsvector like in the full text search guide, but it's giving me hard time with some entries where I need to type the exact multiple-words-name of an entry for it to show. Am building a "quote directory" (similar to urban dictionary) with multiple languages and a lot of text per entry.
g
Probably going to have to look into "fuzzy" searches as mentioned in Scott's link and google on those.
d
Aight thank you sm Gary! I really appreciate it :)