pub struct FrProfile { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Profile for FrProfile
impl Profile for FrProfile
Source§fn min_limit(&self) -> usize
fn min_limit(&self) -> usize
The Géoplateforme asks addok for at least 10 results
(api/indexes/address.js: Math.max(params.limit || 10, 10)).
Source§fn process_query(&self, query: &str) -> String
fn process_query(&self, query: &str) -> String
extract_address, clean_query, remove_leading_zeros.
Source§fn process_tokens(&self, tokens: Vec<Token>) -> Vec<Token>
fn process_tokens(&self, tokens: Vec<Token>) -> Vec<Token>
glue_ordinal, fold_ordinal, flag_housenumber, synonymize,
phonemicize.
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 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 FrProfile
impl Freeze for FrProfile
impl Move for FrProfile
impl RefUnwindSafe for FrProfile
impl Send for FrProfile
impl Sync for FrProfile
impl Unpin for FrProfile
impl UnsafeUnpin for FrProfile
impl UnwindSafe for FrProfile
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