pub enum LexicalQuery {
Term(TermQuery),
Phrase {
terms: Vec<Vec<u8>>,
slop: u32,
field: FieldId,
},
Prefix {
prefix: Vec<u8>,
field: FieldId,
},
TermsWithPrefix {
terms: Vec<Vec<u8>>,
prefix: Vec<u8>,
fields: FieldWeights,
},
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.
TermsWithPrefix
Leading exact terms plus a prefix on the trailing term. Used for type-ahead.
Store queries retain at most 32 prefix contributions by highest live
document frequency (ties by term bytes), reducing recall above that
limit. Exact contributions are unchanged; Prefix remains exhaustive.
Fields
§
fields: FieldWeightsFields and weights shared by the exact and prefix legs.
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§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