getgrav / grav-plugin-simplesearch

Grav SimpleSearch Plugin
https://getgrav.org
MIT License
44 stars 55 forks source link

Is fuzzy searching possible? #83

Open corey-martin opened 7 years ago

corey-martin commented 7 years ago

Can I configure the plugin so the search query "foo bar" would include results that just have "foo" or just "bar"? Maybe even similar_text above a certain percentage for misspellings? Thanks!

flaviocopes commented 7 years ago

Currently not supported, would be a good new feature

ThosG commented 7 years ago

Judging from spelling correctors, misspellings could be coped with easily.

I would very much like to also have phonetic matching - there are several to choose from, starting with original Soundex, then Beider-Morse, Metaphone and Double Metaphone. I've been doing a database for music publishing and confusions like Maniero for Mainerio are a problem when users search.

manuel-84 commented 6 years ago

I've tried to implement that on my fork https://github.com/manuel-84/grav-plugin-simplesearch/commit/06175b5f8a4c60fe3608264bf3217a8e7f2e39ea