Fuzzy search calls /findfuzzy, which no longer exists #3

Closed
opened 2026-10-06 16:11:40 +02:00 by Sansan · 0 comments
Owner

The search modal calls POST /findfuzzy when the fuzzy search type is selected (src/components/items/SearchModal.vue, performSearch). That endpoint no longer exists in MusicServer: it was merged into /find in commit a8a2602 ("#9 Major routes refactor..."), so fuzzy search currently fails.

POST /find now does both in one request, in this order:

  1. Exact matches (case-insensitive substring)
  2. Matches ignoring spaces and special characters (& = "and", + = "plus", é = "e")
  3. Fuzzy matches: all letters of the search term appear in order (for example "mgs4" finds "Metal Gear Solid 4")

Fix

  • Remove the fuzzy/normal search type toggle and always call /find, or
  • Keep the toggle only if a separate exact-only mode is wanted (that would need a new server endpoint)

Acceptance criteria

  • Searching works without 404s
  • Fuzzy-style queries like "mgs4" still find results
The search modal calls `POST /findfuzzy` when the fuzzy search type is selected (`src/components/items/SearchModal.vue`, `performSearch`). That endpoint no longer exists in MusicServer: it was merged into `/find` in commit `a8a2602` ("#9 Major routes refactor..."), so fuzzy search currently fails. `POST /find` now does both in one request, in this order: 1. Exact matches (case-insensitive substring) 2. Matches ignoring spaces and special characters (`&` = "and", `+` = "plus", `é` = "e") 3. Fuzzy matches: all letters of the search term appear in order (for example "mgs4" finds "Metal Gear Solid 4") ## Fix - Remove the fuzzy/normal search type toggle and always call `/find`, or - Keep the toggle only if a separate exact-only mode is wanted (that would need a new server endpoint) ## Acceptance criteria - Searching works without 404s - Fuzzy-style queries like "mgs4" still find results
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Sansan/MusicFrontend#3