Skip to main content

SearchService

Trait SearchService 

Source
pub trait SearchService: Send + Sync {
    // Required method
    fn execute(&self, params: &SearchParams) -> Result<SearchResult, String>;
}
Expand description

Async search execution.

Abstracts the Tantivy + vector index search pipeline so the Model does not hold direct references to index internals.

Required Methods§

Source

fn execute(&self, params: &SearchParams) -> Result<SearchResult, String>

Execute a search query with the given parameters.

Implementors§