pub struct DefaultProfile;Expand description
Profile with no language-specific processing.
Trait Implementations§
Source§impl Profile for DefaultProfile
impl Profile for DefaultProfile
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 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.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.Auto Trait Implementations§
impl Forget for DefaultProfile
impl Freeze for DefaultProfile
impl Move for DefaultProfile
impl RefUnwindSafe for DefaultProfile
impl Send for DefaultProfile
impl Sync for DefaultProfile
impl Unpin for DefaultProfile
impl UnsafeUnpin for DefaultProfile
impl UnwindSafe for DefaultProfile
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