Integrating Full Text Search with supabase
Hi, I have few questions regarding implementation of Supabase full text search, I was reading the docs here https://supabase.com/docs/guides/database/full-text-search#to_tsvector
Currently I have custom react hook function:
I pictured an example query, if you have a look "Chicken, broiler or fryes, breast, skinless..." should've been retrieved in both queries, but is only present in the first one.
Now, I do realise that the ingredient name is very obscure and could be renamed, however as I was reading docs there were different functions mentioned such as:
I don't understand what they do, but can they be included in supabase javascript method
Or is it just postgres limitations and I should simply rename the ingredients
Currently I have custom react hook function:
I pictured an example query, if you have a look "Chicken, broiler or fryes, breast, skinless..." should've been retrieved in both queries, but is only present in the first one.
Now, I do realise that the ingredient name is very obscure and could be renamed, however as I was reading docs there were different functions mentioned such as:
to_tsvector() to_tsquery() @@.I don't understand what they do, but can they be included in supabase javascript method
.textSearch() to improve the search?Or is it just postgres limitations and I should simply rename the ingredients

How to use full text search in PostgreSQL.