Open Mathie01 opened 1 year ago
Looks suspiciously like you're missing the full text index. Docs here - https://www.prisma.io/docs/orm/prisma-client/queries/full-text-search
Hey @Mathie01,
I know we're late to the party here, but would you happen to know/remember what was the specific full text search query
you were running?
Thanks
Bug description
When I do a full-text search using _relevance, the filter is not taken into account.
Code :
Returns the first 10 results from the table (not filtered)
Query Logs :
prisma:query SELECT "public"."repository_drug"."id", "public"."repository_drug"."libelleCourt", "public"."repository_drug"."atc5Code", "public"."repository_drug"."atc5Libelle" FROM "public"."repository_drug" WHERE 1=1 ORDER BY ts_rank(to_tsvector(concat_ws(' ', "public"."repository_drug"."libelleCourt")), to_tsquery($1)) ASC LIMIT $2 OFFSET $3
How to reproduce
1) Generate a data table 2) Filter the data using _relevance
Expected behavior
10 lines corresponding to the filter I have indicated
Prisma information
Environment & setup
Prisma Version