Skip to main content

## rank_search_results

# Function rank_search_results

Source

    pub fn rank_search_results(items: &mut [MediaItem], query: &str)

Expand description

Sort search results by relevance to `query`, in place.

Stable, so items the rules rank equally keep the order the backend supplied (FTS `rank` for cache hits, Jellyfin’s own ordering for server hits).

TRACES: UR-060 | DR-090