Skip to main content

ground_scoped

Function ground_scoped 

Source
pub fn ground_scoped(
    graph: &Graph,
    index: &GroundIndex,
    query: &str,
    limit: usize,
    scope: Scope,
) -> Vec<Hit>
Expand description

Like ground_with, restricted to the candidates a scope admits (docs-only / code-only). Scope::All is identical to ground_with. Scope is a pre-filter on which nodes are scored; IDF/df stays corpus-wide (distinctiveness is a global property of the graph).