pub(crate) async fn run_search(state: State, opts: SearchOpts) -> Result<()>