mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #15983] [MERGED] Prioritize better matches on search #14488
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/15983
Author: @Shadowghost
Created: 1/9/2026
Status: ✅ Merged
Merged: 1/17/2026
Merged by: @crobibero
Base:
release-10.11.z← Head:prioritize-matches📝 Commits (1)
309e595Prioritize better matches on search📊 Changes
2 files changed (+45 additions, -11 deletions)
View changed files
📝
Jellyfin.Server.Implementations/Item/BaseItemRepository.cs(+18 -11)📝
Jellyfin.Server.Implementations/Item/OrderMapper.cs(+27 -0)📄 Description
This makes search results with full and prefix matches appear before contains matches to improve results.
Changes
Prioritize search results by
exact match > prefix match with word boundary > prefix match > containsIssues
If you search for the series
FROM, you'll first get any episodes that includesfromin their name right now because theirCleanNameis prefixed with numbers. If you have more than 100 of such episodes, you'll not see the series, even though the name is a full match. Same thing happens for movies likeFrom Dusk Till Dawn.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.