gravel_core::scoring

Function to_scored

source
pub fn to_scored(hits: Vec<ArcDynHit>, query: &str) -> Vec<ScoredHit>
Expand description

Assigns each hit a score based on how closely its title matches the query, discards non-matching hits and orders them highest to lowest.