Repository navigation
Integrate Fuzzy Search for suggestions聽#984
Description
Activity
Hey @ad1992 I would like to take up this task
sure go ahead @shrilakshmishastry
Hey @ad1992 here is the short description of the above task
Problem statement
- Use fuzzy logic to render suggestions in react-tags based on query input
current functionality
The method used to filter suggestions is filteredSuggestions(). This method uses string matching for all items in the suggestion. Keeping exact match in the beginning and partial match at the end
new functionality
replace this filtering methodology with fuzzy logic.
expected from the task is to use a library called fuzzify for string search.
is above understanding is correct?
is above understanding is correct?
@shrilakshmishastry yes, but to clarify - you need not implement your own fuzzy logic for rendering the suggestions as that's taken care of by fuzzify, you need to only integrate the library fuzzify npm package in this library for suggestions so that fuzzy search is supported for suggestions
Let me know if you have any questionsIt's clear to me.
Reacted by Aakansha Doshi@shrilakshmishastry if you face any issues in integration, please let me know as the fuzzify is at a very early stage and I am looking for feedback as well :)
Reacted by Shrilakshmi ShastryWouldn't it be better to expose an
onSearchevent to allow users to provide their own search functionality? Then you can do the search on backend or database level, for example. You can still provide a default search. This way, no more deps are added as well.
We want to support the fuzzy search for suggestions and for that, we can use a library
Let's use fuzzify to support fuzzy search for suggestions - dogfooding 馃摝 馃榾