pub enum LexicalQuery {
Term(TermQuery),
Phrase {
terms: Vec<Vec<u8>>,
slop: u32,
field: FieldId,
},
Prefix {
prefix: Vec<u8>,
field: FieldId,
},
Fuzzy {
term: Vec<u8>,
max_distance: u32,
field: FieldId,
},
Phonetic {
term: Vec<u8>,
field: FieldId,
},
}Expand description
A structured lexical query over already-analyzed terms.
Variants§
Term(TermQuery)
Existing OR-of-terms semantics.
Phrase
Terms must occur in positional phrase order within the declared slop.
Fields
Prefix
Every indexed term beginning with this analyzed byte prefix.
Fuzzy
Every indexed term within a bounded edit distance.
Fields
Phonetic
Terms sharing the pinned phonetic code.
Implementations§
Trait Implementations§
Source§impl Clone for LexicalQuery
impl Clone for LexicalQuery
Source§fn clone(&self) -> LexicalQuery
fn clone(&self) -> LexicalQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LexicalQuery
impl Debug for LexicalQuery
impl Eq for LexicalQuery
Source§impl PartialEq for LexicalQuery
impl PartialEq for LexicalQuery
impl StructuralPartialEq for LexicalQuery
Auto Trait Implementations§
impl Freeze for LexicalQuery
impl RefUnwindSafe for LexicalQuery
impl Send for LexicalQuery
impl Sync for LexicalQuery
impl Unpin for LexicalQuery
impl UnsafeUnpin for LexicalQuery
impl UnwindSafe for LexicalQuery
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