slate icon indicating copy to clipboard operation
slate copied to clipboard

Search function not finding results

Open smhanov opened this issue 2 years ago • 3 comments

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: image

New version: image

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

smhanov avatar Sep 19 '22 20:09 smhanov

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.

MasterOdin avatar Sep 19 '22 21:09 MasterOdin

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!)

smhanov avatar Oct 06 '22 17:10 smhanov