P
Prisma3mo ago
Rhys

fullText contradicting errors

PrismaClientKnownRequestError:
Invalid `prisma.user.findMany()` invocation:
Cannot find a fulltext index to use for the native search, try adding a @@fulltext([Fields...]) to your schema
PrismaClientKnownRequestError:
Invalid `prisma.user.findMany()` invocation:
Cannot find a fulltext index to use for the native search, try adding a @@fulltext([Fields...]) to your schema
Then I add the @@fullText part to my schema and I get
Error: Prisma schema validation - (get-dmmf wasm)
Error code: P1012
error: Attribute not known: "@fullText".
--> prisma\schema.prisma:88
|
87 | @@index([siteId])
88 | @@fullText([name, firstName, lastName])
Error: Prisma schema validation - (get-dmmf wasm)
Error code: P1012
error: Attribute not known: "@fullText".
--> prisma\schema.prisma:88
|
87 | @@index([siteId])
88 | @@fullText([name, firstName, lastName])
5 Replies
Rhys
RhysOP3mo ago
Versions
"@planetscale/database": "^1.19.0",
"@prisma/adapter-planetscale": "^6.0.1",
"@prisma/client": "^6.0.1",
"prisma": "^6.0.1"
"@planetscale/database": "^1.19.0",
"@prisma/adapter-planetscale": "^6.0.1",
"@prisma/client": "^6.0.1",
"prisma": "^6.0.1"
RaphaelEtim
RaphaelEtim3mo ago
Hi @Rhys You specified @@fullText with an uppercase T, it should be @@fulltext. Don't forget to run prisma generate command after updating the schema
Rhys
RhysOP3mo ago
Thanks @RaphaelEtim
RaphaelEtim
RaphaelEtim3mo ago
You're welcome.

Did you find this page helpful?