Skip to content

Commit

Permalink
Use AND to separate search terms so the order of terms does not matter
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Apr 26, 2024
1 parent 8e4cae3 commit de49dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/resolver/EntryResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export class EntryResolver {
if (!searchTerms?.length) return Expr.value(true)
const terms = searchTerms
.map(term => `"${term.replaceAll('"', '')}"*`)
.join(' + ')
.join(' AND ')
return match(EntrySearch, terms)
}

Expand Down

0 comments on commit de49dc1

Please sign in to comment.