Skip to main content

Module search

Module search 

Source
Expand description

Task queue search and filtering.

Responsibilities:

  • Filtering tasks by status/tag/scope
  • Searching across task text fields (substring, regex, or fuzzy matching)

Not handled here:

  • Queue persistence, repair, or validation (see crate::queue)
  • Task mutation or state changes
  • Search result ordering beyond basic filtering

Invariants/assumptions:

  • Search patterns are normalized (lowercase, trimmed) before comparison
  • Regex compilation failures are propagated to callers
  • Empty filter sets match all tasks (no filtering applied)

It is split out from queue.rs to keep that parent module focused on persistence/repair/validation while keeping a stable public API via re-exports from crate::queue.

Structs§

SearchOptions
Options controlling search and filtering behavior.

Functions§

filter_tasks
fuzzy_search_tasks
Search tasks using fuzzy matching with relevance scoring.
search_tasks
search_tasks_with_options
Unified search entry point that handles all search modes.