Skip to content

Commit

Permalink
chore: do not use single-letter tokens in search
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Sep 24, 2020
1 parent 346b10f commit 38ac792
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/SearchWorker.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export async function search<Meta = string>(
.toLowerCase()
.split(/\s+/)
.forEach(term => {
if (term.length === 1) return;
const exp = expandTerm(term);
t.term(exp, {});
});
Expand Down

0 comments on commit 38ac792

Please sign in to comment.