mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-12-03 12:27:25 -05:00
Only search a subset of the post
This commit is contained in:
parent
23662ed445
commit
b6e15df981
1 changed files with 3 additions and 1 deletions
|
@ -65,7 +65,9 @@ const initLunr = () => {
|
|||
builder.field('content_html')
|
||||
builder.metadataWhitelist = ['position']
|
||||
for (let page of pagesIndex) {
|
||||
builder.add(page)
|
||||
// Temporary hack to make page load faster
|
||||
page['content_html'] = page['content_html'].substring(0, 1000);
|
||||
builder.add(page);
|
||||
}
|
||||
})
|
||||
}).fail((jqxhr, textStatus, error) => {
|
||||
|
|
Loading…
Reference in a new issue