Skip to main content

QueryDecomposer

Trait QueryDecomposer 

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

Breaks a query into 1+ sub-queries to retrieve against independently.

Required Methods§

Source

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

Decompose query. MUST always return at least one element — the original query verbatim when no split applies — so simple queries retrieve exactly as they did before this pipeline existed.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§