Skip to content

Commit

Permalink
use match_phrase_prefix instead
Browse files Browse the repository at this point in the history
  • Loading branch information
huumn committed Oct 3, 2023
1 parent 073fc6b commit 33c1add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/resolvers/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default {
query = queryArr.filter(word => !exclude.includes(word)).join(' ')

if (url) {
whatArr.push({ match_phrase: { url: `${url.slice(4).toLowerCase()}` } })
whatArr.push({ match_phrase_prefix: { url: `${url.slice(4).toLowerCase()}` } })
}

if (nym) {
Expand Down

0 comments on commit 33c1add

Please sign in to comment.