Only search a subset of the post

This commit is contained in:
Brandon Rozek 2023-02-06 14:45:57 -05:00
parent 23662ed445
commit b6e15df981
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480

View file

@ -65,7 +65,9 @@ const initLunr = () => {
builder.field('content_html') builder.field('content_html')
builder.metadataWhitelist = ['position'] builder.metadataWhitelist = ['position']
for (let page of pagesIndex) { 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) => { }).fail((jqxhr, textStatus, error) => {