Skip to content

Commit

Permalink
allow seaching longer urls (#521)
Browse files Browse the repository at this point in the history
Co-authored-by: rleed <[email protected]>
Co-authored-by: Keyan <[email protected]>
  • Loading branch information
3 people authored Oct 3, 2023
1 parent c0c691e commit 073fc6b
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({ wildcard: { url: `*${url.slice(4).toLowerCase()}*` } })
whatArr.push({ match_phrase: { url: `${url.slice(4).toLowerCase()}` } })
}

if (nym) {
Expand Down

0 comments on commit 073fc6b

Please sign in to comment.