diff --git a/api/resolvers/search.js b/api/resolvers/search.js index af575552..8364597c 100644 --- a/api/resolvers/search.js +++ b/api/resolvers/search.js @@ -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) {