pub enum QueryTypes {
String(String),
Array(Vec<MultiQuery>),
}
Expand description
QueryTypes : Query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set. You can either provide one query, or multiple with weights. Multi-query only works with Semantic Search and is not compatible with cross encoder re-ranking or highlights. Query is the search query. This can be any string. The query will be used to create an embedding vector and/or SPLADE vector which will be used to find the result set. You can either provide one query, or multiple with weights. Multi-query only works with Semantic Search and is not compatible with cross encoder re-ranking or highlights.
Variants§
String(String)
Array(Vec<MultiQuery>)
Trait Implementations§
Source§impl Clone for QueryTypes
impl Clone for QueryTypes
Source§fn clone(&self) -> QueryTypes
fn clone(&self) -> QueryTypes
Returns a duplicate of the value. Read more
1.0.0 · 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 QueryTypes
impl Debug for QueryTypes
Source§impl Default for QueryTypes
impl Default for QueryTypes
Source§impl<'de> Deserialize<'de> for QueryTypes
impl<'de> Deserialize<'de> for QueryTypes
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
Source§impl PartialEq for QueryTypes
impl PartialEq for QueryTypes
Source§impl Serialize for QueryTypes
impl Serialize for QueryTypes
impl StructuralPartialEq for QueryTypes
Auto Trait Implementations§
impl Freeze for QueryTypes
impl RefUnwindSafe for QueryTypes
impl Send for QueryTypes
impl Sync for QueryTypes
impl Unpin for QueryTypes
impl UnwindSafe for QueryTypes
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