slatedocs / slate

Beautiful static documentation for your API

Home Page:https://slatedocs.github.io/slate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search function not finding results

smhanov opened this issue · 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):
848d9ee

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.