From f725dce9aa073ac130e67adcf7c5b1b49cc755ae Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 22 Apr 2025 10:47:22 -0300 Subject: client: wiki-search: also take pluralized filter terms --- src/static/js/search-worker.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/static') diff --git a/src/static/js/search-worker.js b/src/static/js/search-worker.js index 1e684adc..a55c10a4 100644 --- a/src/static/js/search-worker.js +++ b/src/static/js/search-worker.js @@ -601,12 +601,12 @@ function queryVerbatimIndex(index, query, options) { function processTerms(query) { const kindTermSpec = [ - {kind: 'album', terms: ['album']}, - {kind: 'artist', terms: ['artist']}, - {kind: 'flash', terms: ['flash']}, - {kind: 'group', terms: ['group']}, - {kind: 'tag', terms: ['art tag', 'tag']}, - {kind: 'track', terms: ['track']}, + {kind: 'album', terms: ['album', 'albums']}, + {kind: 'artist', terms: ['artist', 'artists']}, + {kind: 'flash', terms: ['flash', 'flashes']}, + {kind: 'group', terms: ['group', 'groups']}, + {kind: 'tag', terms: ['art tag', 'art tags', 'tag', 'tags']}, + {kind: 'track', terms: ['track', 'tracks']}, ]; const genericTerms = []; -- cgit 1.3.0-6-gf8a5