He intentado usar muchos símbolos para separar columnas; ||, |, &&, & con y sin espacios.
Por ejemplo
.textSearch("username, title, description", "..."); .textSearch("username|title|description", "...");Y nada ha funcionado :(
Podría crear una función SQL para realizar una búsqueda como esta:
create or replace function search_posts(keyword text) returns table([YOUR_TABLE_DEFINITION]) as $func$ select * from posts where to_tsvector(username || ' ' || title || ' ' || description) -- concat columns, but be sure to include a space to separate them! @@ to_tsquery(keyword); $func$ language sql;Puedes llamar a esta función así:
const {data, error} = await supabase.rpc('search_posts', { keyword: '[YOUR_SEARCH_TERM_HERE]' })Puedes leer más sobre textSearch aquí