From 073fc6b848a4848e278dad7e74ab354b9c090ec3 Mon Sep 17 00:00:00 2001 From: rleed <101502594+rleed@users.noreply.github.com> Date: Mon, 2 Oct 2023 21:55:51 -0300 Subject: [PATCH] allow seaching longer urls (#521) Co-authored-by: rleed Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com> --- api/resolvers/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/resolvers/search.js b/api/resolvers/search.js index e8881d3d..af575552 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({ wildcard: { url: `*${url.slice(4).toLowerCase()}*` } }) + whatArr.push({ match_phrase: { url: `${url.slice(4).toLowerCase()}` } }) } if (nym) {