AlanOC91 / YGOPRODeck

Yu-Gi-Oh! Card Database and Deck Share Site
81 stars 4 forks source link

Suggestion: improve fuzzy search of the ygoprodeck discord bot #366

Open Frefreak opened 2 years ago

Frefreak commented 2 years ago

Hello, First thanks for the useful bot. While using the ygoprodeck discord bot I noticed that the fuzzy search functionality is not very good. For example when I search [wisdom magician] ideally I expect it gives me "Wisdom-Eye Magician". But "Disk Magician" is returned. image

So I suggest maybe ygoprodeck bot can use some other fuzzy search engine like fzf to enhance the user experience. I have a self use script which query cards.cdb and pass the list to fzf, in which case fzf can return the expected result without problem. Peek 2022-02-23 10-56

BTW I assumed ygoprodeck api uses the same fuzzy search engine but giving a "fname" of "Wisdom Magician" returns 400, so maybe they are different.

0xDema commented 2 years ago

In the meantime what I’ve been doing is doing a normal name search and if It comes back empty then i do the fuzzy name search