Skip to main content

rerank_by_kind

Function rerank_by_kind 

Source
pub fn rerank_by_kind(graph: &Graph, hits: Vec<Hit>, target: Kind) -> Vec<Hit>
Expand description

Stable re-rank: hits whose node is of target kind move ahead of the rest, preserving the lexical order within each group. Generic — promotes the asked-for shape without touching scores.