[PR #468] [MERGED] Add optional fuzzy search algorithm #765

Closed
opened 2026-03-02 23:49:44 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: master


📝 Commits (4)

  • ba62607 Add optional fuzzy find algorithm for search
  • 47d311e Update spotify_player/src/state/ui/mod.rs
  • e0f1ab4 remove redundant return
  • d464066 fix 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.

## 📋 Pull Request Information **Original PR:** https://github.com/aome510/spotify-player/pull/468 **Author:** [@juliamertz](https://github.com/juliamertz) **Created:** 6/15/2024 **Status:** ✅ Merged **Merged:** 6/19/2024 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`ba62607`](https://github.com/aome510/spotify-player/commit/ba62607071318558f0e8c8041b35ccc3e2f5b3ae) Add optional fuzzy find algorithm for search - [`47d311e`](https://github.com/aome510/spotify-player/commit/47d311e48be0e1c148b0f18beb68c4c588062ea3) Update spotify_player/src/state/ui/mod.rs - [`e0f1ab4`](https://github.com/aome510/spotify-player/commit/e0f1ab4383fbf99b12a9445779fa273e94fff95f) remove redundant return - [`d464066`](https://github.com/aome510/spotify-player/commit/d4640669acb298a157279c84fb6263d7b0d70a0f) fix clippy ### 📊 Changes **4 files changed** (+42 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+10 -0) 📝 `README.md` (+5 -0) 📝 `spotify_player/Cargo.toml` (+2 -0) 📝 `spotify_player/src/state/ui/mod.rs` (+25 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:49:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#765
No description provided.