pub struct LuProfile;Trait Implementations§
Source§impl Profile for LuProfile
impl Profile for LuProfile
Source§fn version(&self) -> u32
fn version(&self) -> u32
Bump whenever token processing changes: an index built with another
version would no longer match the queries.
Source§fn min_limit(&self) -> usize
fn min_limit(&self) -> usize
Number of results addok computes at least, whatever the requested
limit; the best
limit of them are returned. It changes which
collectors run (a bucket is “full” or “dry” relative to it).Source§fn process_query(&self, query: &str) -> String
fn process_query(&self, query: &str) -> String
addok’s
QUERY_PROCESSORS: string cleanup applied to the ASCII
folded query only, before tokenizing.Source§fn process_tokens(&self, tokens: Vec<Token>) -> Vec<Token>
fn process_tokens(&self, tokens: Vec<Token>) -> Vec<Token>
addok’s
PROCESSORS after tokenize and normalize, run on index
and query text alike.Source§fn make_labels(&self, doc: &Document, housenumber: Option<&str>) -> Vec<String>
fn make_labels(&self, doc: &Document, housenumber: Option<&str>) -> Vec<String>
Labels a result is compared against, best one first.
Source§fn fuzzy_key_map(&self) -> Option<KeyMap>
fn fuzzy_key_map(&self) -> Option<KeyMap>
Keyboard used to limit fuzzy substitutions to neighbouring keys
(addok’s
FUZZY_KEY_MAP); None tries every letter.Auto Trait Implementations§
impl Forget for LuProfile
impl Freeze for LuProfile
impl Move for LuProfile
impl RefUnwindSafe for LuProfile
impl Send for LuProfile
impl Sync for LuProfile
impl Unpin for LuProfile
impl UnsafeUnpin for LuProfile
impl UnwindSafe for LuProfile
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