« get me outta code hell

client: wiki-search: also take pluralized filter terms - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-04-22 10:47:22 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-22 10:47:22 -0300
commitf725dce9aa073ac130e67adcf7c5b1b49cc755ae (patch)
treea1f2e6d768deac42adae7540aa46593fb954938c /src
parent7eecc9a218499dd5c9c0ac4e04c04bf079a7587f (diff)
client: wiki-search: also take pluralized filter terms
Diffstat (limited to 'src')
-rw-r--r--src/static/js/search-worker.js12
1 files changed, 6 insertions, 6 deletions
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 = [];