feat(search): improve search index by chunked separated by h2 and h3 (#290)
This commit is contained in:
@@ -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}>`,
|
||||
|
||||
Reference in New Issue
Block a user