pub struct RuleBasedExpander { /* private fields */ }Expand description
Rule-based query expander that uses a synonym map to generate alternative queries. Each word in the query is checked against the synonym map, and if a match is found, new queries are generated by replacing that word with each of its synonyms.
Implementations§
Source§impl RuleBasedExpander
impl RuleBasedExpander
Trait Implementations§
Source§impl Default for RuleBasedExpander
impl Default for RuleBasedExpander
Source§impl QueryExpander for RuleBasedExpander
impl QueryExpander for RuleBasedExpander
Auto Trait Implementations§
impl Freeze for RuleBasedExpander
impl RefUnwindSafe for RuleBasedExpander
impl Send for RuleBasedExpander
impl Sync for RuleBasedExpander
impl Unpin for RuleBasedExpander
impl UnsafeUnpin for RuleBasedExpander
impl UnwindSafe for RuleBasedExpander
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