pub struct QueryExpander { /* private fields */ }Expand description
Query expander for adding related terms
Implementations§
Source§impl QueryExpander
impl QueryExpander
Sourcepub fn new(config: ExpansionConfig) -> Self
pub fn new(config: ExpansionConfig) -> Self
Create a new query expander
Sourcepub async fn expand(&self, query: &str) -> RragResult<Vec<ExpansionResult>>
pub async fn expand(&self, query: &str) -> RragResult<Vec<ExpansionResult>>
Expand a query using all enabled strategies
Auto Trait Implementations§
impl Freeze for QueryExpander
impl RefUnwindSafe for QueryExpander
impl Send for QueryExpander
impl Sync for QueryExpander
impl Unpin for QueryExpander
impl UnwindSafe for QueryExpander
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more