slate
slate copied to clipboard
Search function not finding results
Bug Description Under an older version (slate 2.3.1) typing "userec" into the page at https://zwibbler.com/docs finds the single result "useRectangleTool". Under the latest version, as we type, we get no results until "usere" and then we get many results, and when we add the character 'c' to get userec, we get no results again. You must type the complete "userectangletool" to get the result.
Screenshots
Old version:
New version:
Browser (please complete the following information):
- OS: Ubuntu 22.04
- Browser: Firefox
- Version: 104.0.2
Last upstream Slate commit (run git log --author="\(Robert Lord\)\|\(Matthew Peveler\)\|\(Mike Ralphson\)" | head -n 1
):
848d9eec206867fda7461cb95119dcd828c7a795
Probably a bug introduced in our usage of lunr.js when we went from 0.5.7 to 2.3.9 in slate 2.7.0.
I can confirm that version 2.6.1 works properly and the latest version does not.
Note if anyone is trying to reproduce it in zwibbler docs, I have reverted to that version (thanks docker!)