pub enum SearchCommand {
Similar {
vector: Vec<f32>,
text: Option<String>,
provider: Option<String>,
collection: String,
limit: usize,
min_score: f32,
},
Text {
query: String,
collection: Option<String>,
limit: usize,
fuzzy: bool,
},
Hybrid {
vector: Option<Vec<f32>>,
query: Option<String>,
collection: String,
limit: usize,
},
Multimodal {
query: String,
collection: Option<String>,
limit: usize,
},
Index {
index: String,
value: String,
collection: Option<String>,
limit: usize,
exact: bool,
},
Context {
query: String,
field: Option<String>,
collection: Option<String>,
limit: usize,
depth: usize,
},
SpatialRadius {
center_lat: f64,
center_lon: f64,
radius_km: f64,
collection: String,
column: String,
limit: usize,
},
SpatialBbox {
min_lat: f64,
min_lon: f64,
max_lat: f64,
max_lon: f64,
collection: String,
column: String,
limit: usize,
},
SpatialNearest {
lat: f64,
lon: f64,
k: usize,
collection: String,
column: String,
},
}Expand description
Search command issued via SQL-like syntax
Variants§
Similar
SEARCH SIMILAR [v1, v2, …] | TEXT ‘query’ [COLLECTION col] [LIMIT n] [MIN_SCORE f] [USING provider]
Fields
Text
SEARCH TEXT ‘query’ [COLLECTION col] [LIMIT n] [FUZZY]
Hybrid
SEARCH HYBRID [vector] [TEXT ‘query’] COLLECTION col [LIMIT n]
Multimodal
SEARCH MULTIMODAL ‘key_or_query’ [COLLECTION col] [LIMIT n]
Index
SEARCH INDEX index VALUE ‘value’ [COLLECTION col] [LIMIT n] [EXACT]
Context
SEARCH CONTEXT ‘query’ [FIELD field] [COLLECTION col] [LIMIT n] [DEPTH n]
SpatialRadius
SEARCH SPATIAL RADIUS lat lon radius_km COLLECTION col COLUMN col [LIMIT n]
Fields
SpatialBbox
SEARCH SPATIAL BBOX min_lat min_lon max_lat max_lon COLLECTION col COLUMN col [LIMIT n]
Fields
SpatialNearest
SEARCH SPATIAL NEAREST lat lon K n COLLECTION col COLUMN col
Trait Implementations§
Source§impl Clone for SearchCommand
impl Clone for SearchCommand
Source§fn clone(&self) -> SearchCommand
fn clone(&self) -> SearchCommand
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 moreAuto Trait Implementations§
impl Freeze for SearchCommand
impl RefUnwindSafe for SearchCommand
impl Send for SearchCommand
impl Sync for SearchCommand
impl Unpin for SearchCommand
impl UnsafeUnpin for SearchCommand
impl UnwindSafe for SearchCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request