jameslittle230 / stork

🔎 Impossibly fast web search, made for static sites.
https://stork-search.net
Apache License 2.0
2.73k stars 56 forks source link

Enable exact searching for phrases by using quotes #349

Open jameslittle230 opened 1 year ago

jameslittle230 commented 1 year ago

A big gap for me right now is the lack of "exact" searches, conventionally done using quotes. For example, searching for I fell off the roof finds occurrences of any and all of those words.

If I want to search only for the exact phrase, I would expect to enter "I fell off the roof", but this appears to search for literally the word 'if' prefixed with a leading quotation mark, and also for the word 'roof' followed by a trailing quotation mark, and also the word 'fell', etc. 😬

Are exact-phrase searches on the roadmap? Maybe for v2? 👀

Originally posted by @danj-ca in https://github.com/jameslittle230/stork/discussions/342#discussioncomment-5204834