Skip to main content

fuzzy_search_tasks

Function fuzzy_search_tasks 

Source
pub fn fuzzy_search_tasks<'a>(
    tasks: impl IntoIterator<Item = &'a Task>,
    query: &str,
    case_sensitive: bool,
) -> Result<Vec<(u32, &'a Task)>>
Expand description

Search tasks using fuzzy matching with relevance scoring.

Returns tasks sorted by match score (highest first). Each task is searched across all text fields (title, evidence, plan, notes, request, tags, scope, custom fields). The best matching field’s score is used for the task.