Skip to content

Commit

Permalink
add word similarity to search
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed May 22, 2024
1 parent 4830dd8 commit 7a92ca8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/resolvers/projectResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,13 @@ export class ProjectResolver {
// .setParameter('searchTerm', searchTerm)
.andWhere(
new Brackets(qb => {
qb.where('project.title % :searchTerm ', {
qb.where('project.title %> :searchTerm ', {
searchTerm,
})
.orWhere('project.description % :searchTerm ', {
.orWhere('project.description %> :searchTerm ', {
searchTerm,
})
.orWhere('project.impactLocation % :searchTerm', {
.orWhere('project.impactLocation %> :searchTerm', {
searchTerm,
});
}),
Expand Down

0 comments on commit 7a92ca8

Please sign in to comment.