From 983efab94c31bb19b532e120f2f70f45f788b7c8 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 13 Feb 2023 00:46:11 +0000
Subject: [PATCH] fix: recent notes partial sorting
---
assets/js/semantic-search.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/assets/js/semantic-search.js b/assets/js/semantic-search.js
index bfe102e..fca2851 100644
--- a/assets/js/semantic-search.js
+++ b/assets/js/semantic-search.js
@@ -24,7 +24,7 @@
},
body: JSON.stringify({
query: query,
- limit: 8,
+ limit: 10,
}),
})
if (result.ok) {
@@ -48,7 +48,7 @@
debounce((e) => {
let term = e.target.value
if (term !== "") {
- searchContents(term).then((results) => displayResults(results))
+ searchContents(term).then((results) => displayResults(term, results))
}
}),
)
--
Gitblit v1.10.0