Skip to main content

TemporalDecayExt

Trait TemporalDecayExt 

Source
pub trait TemporalDecayExt {
    // Required method
    fn with_temporal_decay(
        self,
        scorer: &TemporalScorer,
    ) -> Vec<TemporallyDecayedResult>;
}
Expand description

Extension trait for applying temporal decay to search results

Required Methods§

Source

fn with_temporal_decay( self, scorer: &TemporalScorer, ) -> Vec<TemporallyDecayedResult>

Apply temporal decay and return sorted results

Implementors§

Source§

impl<I> TemporalDecayExt for I
where I: IntoIterator<Item = (String, f32, f64)>,