Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-04-29 22:22:52 +0300
committerGitHub <noreply@github.com>2020-04-29 22:22:52 +0300
commit3096ff623597d3af9a9c65525405b858ad547e7a (patch)
treed701b0d7ce1c60e656b9b1353a62a55d244fabda /src
parent108679e137bef428135aaba46bcb44b804c21489 (diff)
feat(search): improve search index by chunked separated by h2 and h3 (#290)
Diffstat (limited to 'src')
-rw-r--r--src/js/theme.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/theme.js b/src/js/theme.js
index 1d168ad..017c253 100644
--- a/src/js/theme.js
+++ b/src/js/theme.js
@@ -237,7 +237,7 @@ class Theme {
this._algoliaIndex
.search(query, {
offset: 0,
- length: searchConfig.maxResultLength * 3,
+ length: searchConfig.maxResultLength * 10,
attributesToHighlight: ['title'],
attributesToSnippet: ['content:30'],
highlightPreTag: `<${searchConfig.highlightTag}>`,