Score

Trait Score 

Source
pub trait Score {
    // Required method
    fn score(&self, terms: &[String]) -> usize;
}
Expand description

Trait for scoring search terms against a filter

Required Methods§

Source

fn score(&self, terms: &[String]) -> usize

Returns the number of search terms that match this filter

Implementations on Foreign Types§

Source§

impl Score for HashProxy<String, DefaultHasher, Xor8>

Implementation of scoring for Xor filters The score denotes the number of terms from the query that are contained in the current filter

Source§

fn score(&self, terms: &[String]) -> usize

Implementors§