Fix missing matches in search bar (#74)

This commit is contained in:
czifumasa
2021-12-30 12:46:07 +01:00
committed by GitHub
parent 7062099445
commit 0afb1730ed

View File

@@ -96,7 +96,7 @@ class LunrSearchIndex implements SearchIndex {
const query = input
.split(' ')
.filter((s) => !!s)
.map((s) => `+${s}*`)
.map((s) => `${s} ${s}*`)
.join(' ');
const results = this.index!.search(query);
return results