Skip to content

Commit

Permalink
fix(author-search): 🚑 use full phrase search until weighted sorting i…
Browse files Browse the repository at this point in the history
…s available
  • Loading branch information
djdembeck committed Oct 3, 2021
1 parent 2363779 commit 166c30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/routes/authors/search/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function routes (fastify, options) {
if (name) {
return Promise.resolve(
Author.find(
{ $text: { $search: name } },
{ $text: { $search: `"${name}"` } },
{ limit: 25 }
)
)
Expand Down

0 comments on commit 166c30d

Please sign in to comment.