segler-alex / radiobrowser-api-rust

radio-browser API implementation in rust
GNU Affero General Public License v3.0
230 stars 97 forks source link

Stations /bynamefuzzy #78

Closed Suplanus closed 11 months ago

Suplanus commented 4 years ago

Would be great to have fuzzy search built in.

Example:
The station ROCK ANTENNE Heavy Metal would be found if the user searches with the search term Rock Antenne Metal.

In the current implementation /byname not find the station.

segler-alex commented 3 years ago

i like this idea, but i do not have a solution yet. i will do some research how to do this correctly inside the database.

NerfBro commented 2 years ago

If you’re using SQL you could try using a SOUNDEX for pattern matching.