From 4cd6f7efdf9161f1a1c7ad381d5bc4f2828eedb8 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 01 Dec 2022 02:00:12 +0000
Subject: [PATCH] fix: text highlighting
---
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