chore: do not use single-letter tokens in search

This commit is contained in:
Roman Hotsiy 2020-09-24 14:04:51 +03:00
parent 346b10f173
commit 38ac792b85
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -109,6 +109,7 @@ export async function search<Meta = string>(
.toLowerCase() .toLowerCase()
.split(/\s+/) .split(/\s+/)
.forEach(term => { .forEach(term => {
if (term.length === 1) return;
const exp = expandTerm(term); const exp = expandTerm(term);
t.term(exp, {}); t.term(exp, {});
}); });