Open lukepighetti opened 3 years ago
It seems weighted search had a couple of bugs. For example, weights are supposed to be normalized, so passing weight = 1.0 would already get unexpected results.
I've fixed this and a couple more things in https://github.com/luistrivelatto/fuzzy. Maybe you can test if the behaviour works better with that code?
This may be a configuration issue as I have no experience with fuzzy searching, opting into services like Algolia. However, I need an offline search-as-you-type feature and I'm looking for a similar experience.
Behavior: as you add characters the results alternate between a single result (sometimes missing expected results) and a bunch of seemingly unrelated results.
An example of missing results is typing
penobscot
and not getting backMid-Penobscot River Valley
orNorth Penobscot Farm-Woodlands
Expected: as you type more characters the results get more and more honed.