pub struct QueryFeatures;Expand description
Query feature detection
Implementations§
Source§impl QueryFeatures
impl QueryFeatures
Sourcepub fn extract_features(query: &str) -> QueryFeatureFlags
pub fn extract_features(query: &str) -> QueryFeatureFlags
Extract features from query text using cached regexes for better performance
Sourcepub fn gamma_boost(kind: &str, features: &QueryFeatureFlags) -> f64
pub fn gamma_boost(kind: &str, features: &QueryFeatureFlags) -> f64
Calculate gamma boost based on query features and content kind
Auto Trait Implementations§
impl Freeze for QueryFeatures
impl RefUnwindSafe for QueryFeatures
impl Send for QueryFeatures
impl Sync for QueryFeatures
impl Unpin for QueryFeatures
impl UnwindSafe for QueryFeatures
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