SupabaseS
Supabase3y ago
Bod

Full Text Search

Hello, I'm trying to do a full text search on my table but I can't make it work withous exact matches.
Here is a screenshot of my table :

I tried in js and directly in the SQL Editor
data = await client
            .from("sneakers")
            .select()
            .textSearch("name", query, {
                type: "websearch",
                config: "english",
            })
            .range(
                page * items_per_page - items_per_page,
                page * items_per_page - 1
            );


select
  *
from
  sneakers
where
  to_tsvector(name) @@ to_tsquery('jor');


neither of them return rows.

What am I doing wrong ?
Capture-2023-12-08-153317.png
Was this page helpful?