Closed greggman closed 7 months ago
Am I misunderstanding what this library is supposed to do?
yes. https://github.com/farzher/fuzzysort/issues/96#issuecomment-1076422766
i agree with your example but that's just not the use case i guess. not sure if i could make that work without breaking the intended use case of quickly looking up files
I was looking for a solution where if I search for 2 or more words, items with those exact 2 words appear before items without those 2 words. Items with either of those 2 works appear next. Only after do items with neither of those 2 works but some combination of their letters appear. That seems, at least to me, what a user would expect.
If my data is
If I search for "James Smith" I'd expect to see this order
Testing on the demo site here
https://rawgit.com/farzher/fuzzysort/master/test/test.html
If I search for "human" I see several matches
If I search for "web" I see tons of matches (though I think I'd expect matches with "web" as a single word to appear first and they don't)
If I search for "human web" then no answers appear with either word
Am I misunderstanding what this library is supposed to do?