Commit e66be3f
committed
Improve search results
Summary of changes:
- Apply the same pipeline operations to the query tokens. that is applied to
the index tokens. Before we were not removing stop words from query
tokens.
- Replace uniq with native js Set. uniq was changing position of
elements.
- When building the index, include both stemmed and non-stemmed versions
of tokens.
- When querying, assuming the last token in incomplete and do a prefix
search. Add the prefix search results to the search results (if not
already present).1 parent 19535a3 commit e66be3f
File tree
6 files changed
+21268
-11622
lines changed- dist
- lib
- test
6 files changed
+21268
-11622
lines changed
0 commit comments