« get me outta code hell

search: always return results in our order - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/common-util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-07-30 14:39:23 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-07-30 14:39:23 -0300
commit789ffc7f759ab51ff874f2e12a009a7fdd44baa9 (patch)
tree7eda9972692c00dfb358184eb1137807969aefc1 /src/common-util
parent494a634ccfa9cbcca8e9b4d01949fb92a45ffc89 (diff)
search: always return results in our order preview
Diffstat (limited to 'src/common-util')
-rw-r--r--src/common-util/search-spec.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common-util/search-spec.js b/src/common-util/search-spec.js
index c6e9291a..731e5495 100644
--- a/src/common-util/search-spec.js
+++ b/src/common-util/search-spec.js
@@ -238,6 +238,10 @@ export function makeSearchIndex(descriptor, {FlexSearch}) {
     id: 'reference',
     index: descriptor.index,
     store: descriptor.store,
+
+    // Disable scoring, always return results according to provided order
+    // (specified above in `genericQuery`, etc).
+    resolution: 1,
   });
 }