mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 17:35:50 +03:00
[PR #468] [MERGED] Add optional fuzzy search algorithm #1706
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1706
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aome510/spotify-player/pull/468
Author: @juliamertz
Created: 6/15/2024
Status: ✅ Merged
Merged: 6/19/2024
Merged by: @aome510
Base:
master← Head:master📝 Commits (4)
ba62607Add optional fuzzy find algorithm for search47d311eUpdate spotify_player/src/state/ui/mod.rse0f1ab4remove redundant returnd464066fix clippy📊 Changes
4 files changed (+42 additions, -0 deletions)
View changed files
📝
Cargo.lock(+10 -0)📝
README.md(+5 -0)📝
spotify_player/Cargo.toml(+2 -0)📝
spotify_player/src/state/ui/mod.rs(+25 -0)📄 Description
I discovered that the current search algorithm struggles with queries that start with a single letter followed by a space. To address this issue, I've added a new feature flag that enables fuzzy searching. This makes searching a lot more flexible and also sorts the results by their relevance.
This is my first time using feature flags, so I am open to feedback on the control flow implementation.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.