« get me outta code hell

search: parent names, art tags, shenanigans - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-18 21:05:24 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 12:11:57 -0300
commit2fabadd375a05c79b37719abd5b41abcfa4ac0de (patch)
tree3465ca6f1e00944b3def99ee70c8f77dea449e0d /src/static/js
parent44987923fcf0db564042452366d9750aee656a4a (diff)
search: parent names, art tags, shenanigans
Diffstat (limited to 'src/static/js')
-rw-r--r--src/static/js/search-worker.js27
1 files changed, 22 insertions, 5 deletions
diff --git a/src/static/js/search-worker.js b/src/static/js/search-worker.js
index 44af94fd..ab7830c0 100644
--- a/src/static/js/search-worker.js
+++ b/src/static/js/search-worker.js
@@ -383,13 +383,30 @@ function performSearchAction({query, options}) {
 
 function queryGenericIndex(index, query, options) {
   const interestingFieldCombinations = [
-    ['primaryName', 'contributors', 'groups'],
-    ['primaryName', 'groups'],
-    ['kind', 'contributors', 'primaryName'],
-    ['kind', 'contributors', 'groups'],
-    ['kind', 'groups', 'primaryName'],
+    ['kind', 'primaryName', 'parentName', 'groups'],
+    ['kind', 'primaryName', 'parentName'],
+    ['kind', 'primaryName', 'groups', 'contributors'],
+    ['kind', 'primaryName', 'groups', 'artTags'],
+    ['kind', 'primaryName', 'groups'],
+    ['kind', 'primaryName', 'contributors'],
+    ['kind', 'parentName', 'groups', 'artTags'],
+    ['kind', 'parentName', 'artTags'],
+    ['kind', 'groups', 'contributors'],
+    ['kind', 'groups', 'artTags'],
     ['kind', 'groups'],
     ['kind', 'contributors'],
+
+    ['primaryName', 'parentName', 'groups'],
+    ['primaryName', 'parentName'],
+    ['primaryName', 'groups', 'contributors'],
+    ['primaryName', 'groups', 'artTags'],
+    ['primaryName', 'groups'],
+    ['primaryName', 'contributors'],
+    ['parentName', 'groups', 'artTags'],
+    ['parentName', 'artTags'],
+    ['groups', 'contributors'],
+    ['groups', 'artTags'],
+
     ['contributors', 'groups'],
     ['primaryName', 'contributors'],
     ['primaryName'],