« get me outta code hell

search: move simple name-only match to top - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-07-30 14:04:23 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-07-30 14:04:23 -0300
commit9349febb44ff1fc935845a26dda494dcb43b43ff (patch)
tree630f1bc423a260a52b31816167b2716adb073214
parentcbd75344f4e149e5e7895de361af40b1dc7098e6 (diff)
search: move simple name-only match to top
-rw-r--r--src/static/js/search-worker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/static/js/search-worker.js b/src/static/js/search-worker.js
index e32b4ad5..3e9fbfca 100644
--- a/src/static/js/search-worker.js
+++ b/src/static/js/search-worker.js
@@ -391,6 +391,8 @@ function performSearchAction({query, options}) {
 }
 
 const interestingFieldCombinations = [
+  ['primaryName'],
+
   ['primaryName', 'parentName', 'groups'],
   ['primaryName', 'parentName'],
   ['primaryName', 'groups', 'contributors'],
@@ -412,7 +414,6 @@ const interestingFieldCombinations = [
   ['contributors', 'parentName'],
   ['contributors', 'groups'],
   ['primaryName', 'contributors'],
-  ['primaryName'],
 ];
 
 function queryGenericIndex(query, options) {