Function scout::fuzzy::search[][src]

pub fn search<'pool>(
    q: &str,
    pool: &'pool impl IntoParallelRefIterator<'pool, Item = &'pool Text>
) -> Vec<Candidate>

Search for candidates that fuzzy-match a query

  • If the query is empty it just returns the same pool of candidates
  • Otherwise it will try to compute the best match for each candidate and then sort them from higher score to lower