mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #13812] [CLOSED] Improve search with partial term matching #13721
Reference in New Issue
Block a user
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/jellyfin/jellyfin/pull/13812
Author: @TOomaAh
Created: 3/31/2025
Status: ❌ Closed
Base:
master← Head:feature/fuzzy-search📝 Commits (3)
94ffb23feat: Improve search functionality with fuzzy matching for partial termsa174944feat: implement FTS5 search with numeric term supportafb4963refacto: remove unused method📊 Changes
3 files changed (+125 additions, -2 deletions)
View changed files
📝
Jellyfin.Server.Implementations/Item/BaseItemRepository.cs(+18 -2)📝
src/Jellyfin.Database/Jellyfin.Database.Implementations/IJellyfinDatabaseProvider.cs(+10 -0)📝
src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/SqliteDatabaseProvider.cs(+97 -0)📄 Description
Changes
This commit enhances the search functionality by implementing fuzzy matching for partial terms. It modifies how special characters are processed, adds support for shorter tokens in search queries, and improves the handling of numeric parts in search terms. These changes allow users to find content even with incomplete or partially typed search terms, making the search experience more forgiving and user-friendly. This is a test implementation to gather feedback from users and determine the best approach for fuzzy searching in the long term.
I've only been able to test this implementation on a small library with limited content, and the performance appears acceptable with no noticeable delays in search results. However, additional testing on larger libraries would be beneficial to fully understand the performance characteristics of these changes. Users with extensive collections may want to monitor search response times when testing this PR.
Issues
Fixes #1674
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.