pub struct BeProfile;Trait Implementations§
Source§impl Profile for BeProfile
impl Profile for BeProfile
Source§fn make_labels(&self, doc: &Document, housenumber: Option<&str>) -> Vec<String>
fn make_labels(&self, doc: &Document, housenumber: Option<&str>) -> Vec<String>
The French combinations (number first) plus the Belgian ones (number after the street), so both ways of writing score alike.
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 display_label(
&self,
doc: &Document,
housenumber: Option<&str>,
query: &str,
) -> Option<String>
fn display_label( &self, doc: &Document, housenumber: Option<&str>, query: &str, ) -> Option<String>
The label shown for a result, given the ASCII folded query (empty
when reverse geocoding).
None shows the first label, like addok’s
str(result).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 BeProfile
impl Freeze for BeProfile
impl Move for BeProfile
impl RefUnwindSafe for BeProfile
impl Send for BeProfile
impl Sync for BeProfile
impl Unpin for BeProfile
impl UnsafeUnpin for BeProfile
impl UnwindSafe for BeProfile
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