diff options
author | Dillon <dillonzq@outlook.com> | 2020-04-29 22:22:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 22:22:52 +0300 |
commit | 3096ff623597d3af9a9c65525405b858ad547e7a (patch) | |
tree | d701b0d7ce1c60e656b9b1353a62a55d244fabda /src | |
parent | 108679e137bef428135aaba46bcb44b804c21489 (diff) |
feat(search): improve search index by chunked separated by h2 and h3 (#290)
Diffstat (limited to 'src')
-rw-r--r-- | src/js/theme.js | 2 |
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}>`, |