pub enum Query {
Show 14 variants
MatchAll,
Term {
field: String,
value: JsonValue,
},
Terms {
field: String,
values: Vec<JsonValue>,
},
Range {
field: String,
lower: Option<JsonValue>,
upper: Option<JsonValue>,
include_lower: bool,
include_upper: bool,
},
Text {
field: String,
text: String,
options: Option<TextQueryOptions>,
},
MultiMatch {
fields: Vec<MultiMatchField>,
text: String,
options: Option<MultiMatchOptions>,
},
Exists {
field: String,
},
Prefix {
field: String,
prefix: String,
analyzer: Option<TextQueryAnalyzer>,
analyze_wildcard: bool,
},
Fuzzy {
field: String,
value: String,
distance: u32,
analyzer: Option<TextQueryAnalyzer>,
},
Boost {
query: Box<Query>,
boost: ApproximateNumber,
},
Bool {
must: Vec<Query>,
filter: Vec<Query>,
should: Vec<Query>,
must_not: Vec<Query>,
minimum_should_match: u32,
},
Nested {
path: String,
query: Box<Query>,
score_mode: NestedScoreMode,
ignore_unmapped: bool,
inner_hits: Option<NestedInnerHits>,
},
Vector {
field: String,
query_vector: Vec<ApproximateNumber>,
k: u32,
num_candidates: Option<u32>,
filter: Option<Box<Query>>,
},
HybridRrf {
lexical: Box<Query>,
field: String,
query_vector: Vec<ApproximateNumber>,
k: u32,
num_candidates: Option<u32>,
filter: Option<Box<Query>>,
rank_constant: u32,
lexical_window: u32,
vector_window: u32,
},
}Variants§
MatchAll
Term
Terms
Range
Fields
Text
MultiMatch
Exists
Prefix
Fuzzy
Boost
Bool
Fields
Nested
Vector
Fields
§
query_vector: Vec<ApproximateNumber>HybridRrf
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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