raph5 / eve-market-browser

9 stars 1 forks source link

Three letter items cannot be searched #2

Open mgolawala opened 1 month ago

mgolawala commented 1 month ago

If you type in items to search for that are less than four letters, nothing happens.

Steps to reproduce: Enter a 3 letter item into the "Search" field under the "Browse" tab, and press enter. Eg. "Ark" "Nyx" "Sin"

Result: Nothing happens

Expected Behavior: Perform search for items (ships/modules/blueprints/skins/etc.) that contain the three letter text being searched.

raph5 commented 1 month ago

Hi, thank you for reporting this issue

For now the search bar is using a quick and dirty regex match algorithm that triggers on words larger than 3 letters. I will implement a cleaner lazy fuzzy search algorithm after I finish polishing the backend.

If you would like to implement it yourself, feel free to do so. Im fetching the item list on page load so the search algo will be on client side.