CloudCannon / pagefind

Static low-bandwidth search at scale
https://pagefind.app
MIT License
3.34k stars 100 forks source link

Enhance Pagefind to support search with non-matching text #445

Open kenmorse opened 11 months ago

kenmorse commented 11 months ago

From discussion.

When people enter more free-form text in an input field or textarea, Pagefind won't always return results. For example, enter this in the search on the Pagefind page:

I need help with pagefind and hugo along with jekyll

and you'll see

No results for I need help with pagefind and hugo along with jekyll

Even though many of those words are indeed on the site, no results are returned, even with the new 1.0.x versions.

It would be great to see Pagefind support free-form searches like this.

bglw commented 11 months ago

Agreed! I didn't get a chance to tackle this prior to 1.0, but I do have some ideas so should be able to look at this in an upcoming release 🙂

kenmorse commented 11 months ago

Happy to help in any way I can, including testing, @bglw

kenmorse commented 4 months ago

@bglw – does the Customize ranking work you did for version 1.1.0 help with this at all?

bglw commented 4 months ago

Hmm, not immediately, no. But it might pose as an interesting place to add a setting around this 🤔