Skip to main content

QueryExpander

Trait QueryExpander 

Source
pub trait QueryExpander: Send + Sync {
    // Required method
    fn expand(&self, query: &str) -> Result<Vec<String>>;
}
Expand description

Trait for expanding queries into multiple related queries.

Required Methods§

Source

fn expand(&self, query: &str) -> Result<Vec<String>>

Expand a query into multiple related queries.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§