Skip to main content

Module search_cmd

Module search_cmd 

Source
Expand description

Tauri commands for search operations.

§Commands

  • search_local_filter — pure in-process filter over a caller-supplied Vec<EntryRef> slice; no S3 calls.
  • search_prefix — paginated bucket-wide search that emits search:page events; returns request_id.
  • search_cancel — cancel an in-flight prefix search.

§OCP

Search modes are independent command paths. Adding a new mode (e.g. history search) is one new command here. CancellationToken and SearchRegistry are reusable for any future long-running command.

Functions§

search_cancel
Cancel an in-flight prefix search identified by request_id.
search_local_filter
Filter entries by query (case-insensitive substring match on key).
search_prefix
Begin a paginated, cancellable prefix search.