use crate::search::{Matches, Search, SearchOptions};
#[derive(Default, Clone)]
pub struct NoopEngine {}
#[async_trait::async_trait]
impl Search for NoopEngine {
async fn query(
&self,
term: &str,
_filter: &str,
options: SearchOptions,
) -> anyhow::Result<Matches> {
Ok(Matches::new(&options, term.to_owned()))
}
async fn index(&self, _: &crate::Invoice) -> anyhow::Result<()> {
Ok(())
}
}