pub struct ExpansionConfig {
pub max_synonyms: usize,
pub max_related_terms: usize,
pub enable_synonyms: bool,
pub enable_related_terms: bool,
pub enable_semantic_expansion: bool,
pub enable_domain_expansion: bool,
pub min_relevance_score: f32,
}Expand description
Configuration for query expansion
Fields§
§max_synonyms: usizeMaximum number of synonyms to add
Maximum number of related terms to add
enable_synonyms: boolEnable synonym expansion
Enable related term expansion
enable_semantic_expansion: boolEnable semantic expansion
enable_domain_expansion: boolEnable domain-specific expansion
min_relevance_score: f32Minimum relevance score for expansions
Trait Implementations§
Source§impl Clone for ExpansionConfig
impl Clone for ExpansionConfig
Source§fn clone(&self) -> ExpansionConfig
fn clone(&self) -> ExpansionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpansionConfig
impl Debug for ExpansionConfig
Auto Trait Implementations§
impl Freeze for ExpansionConfig
impl RefUnwindSafe for ExpansionConfig
impl Send for ExpansionConfig
impl Sync for ExpansionConfig
impl Unpin for ExpansionConfig
impl UnwindSafe for ExpansionConfig
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