Skip to main content

SearchProvider

Trait SearchProvider 

Source
pub trait SearchProvider: Send + Sync {
    // Required methods
    fn search(&self, query: &SearchQuery) -> Result<SearchResults>;
    fn capabilities(&self) -> SearchCapabilities;
}
Expand description

Provides content and filename search within a filesystem scope.

Implementations are returned by SearchCapable::search_provider and execute queries against an index or other optimized data structure.

Required Methods§

Source

fn search(&self, query: &SearchQuery) -> Result<SearchResults>

Execute a content search query.

Source

fn capabilities(&self) -> SearchCapabilities

Report what this provider can do.

Implementors§