pub struct TermQuery {
pub terms: Vec<Vec<u8>>,
pub fields: FieldWeights,
}Expand description
A structured lexical query.
Terms are already analyzed. There is no string query path into the engine: parsing text into a structured query is a bindings-layer convenience with its own typed errors.
Fields§
§terms: Vec<Vec<u8>>Analyzed query terms.
fields: FieldWeightsField weights to score over.
Implementations§
Trait Implementations§
impl Eq for TermQuery
impl StructuralPartialEq for TermQuery
Auto Trait Implementations§
impl Freeze for TermQuery
impl RefUnwindSafe for TermQuery
impl Send for TermQuery
impl Sync for TermQuery
impl Unpin for TermQuery
impl UnsafeUnpin for TermQuery
impl UnwindSafe for TermQuery
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