Skip to main content

QueryExpander

Trait QueryExpander 

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

Widens a folded query into alternative spellings. Query-side only: an expander never runs against stored values, so adding one needs no backfill.

Required Methods§

Source

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

The alternatives for folded_q, excluding the query itself.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§