MicroDroid / vue-materialize-datatable

A fancy Materialize CSS datatable VueJS component.
https://overcoder.dev/vue-materialize-datatable
MIT License
179 stars 67 forks source link

Disable fuzzy search #4

Closed thepill closed 7 years ago

thepill commented 7 years ago

Current: At the moment searching the table returns all fuzzy results.

Expected: Searching should return only exact matches.

MicroDroid commented 7 years ago

Why does it have to be exact and not fuzzy? Fuzzy makes it easier to reach your target row while still ordering fuzzy results in such a way that exact results and always first

thepill commented 7 years ago

I found it confusing searching for a specific name and got 5 results back although the name was exactly to only one result. IMO i think you could remove fusejs tottaly :)

thepill commented 7 years ago

Or we could make this a prop like <datatable ... fuzzy-search>

MicroDroid commented 7 years ago

@thepill A prop to disable fuzzy searching would be best and easy to implement. I think fuzzy-searching being on by default would be nice maybe (or not?). Either way I'll merge the pull request if you implement the prop to disable/enable fuzzy searching.

:+1:

MicroDroid commented 7 years ago

Thanks a lot