[PR #15983] [MERGED] Prioritize better matches on search #14488

Closed
opened 2026-02-07 07:30:39 +03:00 by OVERLORD · 0 comments
Owner

📋 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.zHead: prioritize-matches


📝 Commits (1)

  • 309e595 Prioritize 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 > contains

Issues
If you search for the series FROM, you'll first get any episodes that includes from in their name right now because their CleanName is 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 like From Dusk Till Dawn.


🔄 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/jellyfin/jellyfin/pull/15983 **Author:** [@Shadowghost](https://github.com/Shadowghost) **Created:** 1/9/2026 **Status:** ✅ Merged **Merged:** 1/17/2026 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `release-10.11.z` ← **Head:** `prioritize-matches` --- ### 📝 Commits (1) - [`309e595`](https://github.com/jellyfin/jellyfin/commit/309e59535fba31e2d247a16cad1f3a567041d08f) Prioritize better matches on search ### 📊 Changes **2 files changed** (+45 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Server.Implementations/Item/BaseItemRepository.cs` (+18 -11) 📝 `Jellyfin.Server.Implementations/Item/OrderMapper.cs` (+27 -0) </details> ### 📄 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 > contains` **Issues** If you search for the series `FROM`, you'll first get any episodes that includes `from` in their name right now because their `CleanName` is 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 like `From Dusk Till Dawn`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:30:39 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#14488