Vignesh T.V.
04/06/2022, 7:01 AMfullTextSearch
Any idea why?Nurul
04/06/2022, 9:16 AMVignesh T.V.
04/06/2022, 10:20 AMjanpio
Nurul
04/06/2022, 12:54 PMawait prisma.post.create({
data: {
title: 'Hello World',
content:
'Select the SOAP header that does not exist in API 29.0 and earlier versions up to 14.0 and might not be seen in WSDL',
},
});
// All drafts that contain the words
const result = await prisma.post.findMany({
where: {
content: {
search: 'API 29.0',
},
},
});
console.log(result);
Searching for API 29.0
gives the following error
Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState("42601"), message: "syntax error in tsquery: \"API 29.0\"", detail: None, hint: None, position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("tsquery.c"), line: Some(726), routine: Some("makepol") }) }) })
While searching for API & 29.0
by using &
operator is giving proper results.haider shahid
04/06/2022, 12:59 PMjanpio