#[non_exhaustive]pub enum SearchError {
Show 16 variants
InvalidConfig(&'static str),
DimensionMismatch {
expected: usize,
actual: usize,
vector: Option<usize>,
},
NonFiniteValue {
vector: Option<usize>,
dimension: usize,
},
ZeroVector {
vector: Option<usize>,
},
DuplicateKey(u64),
DuplicateVectorId {
key: u64,
vector_id: u64,
},
CapacityOverflow,
AllocationFailed,
WorkerPanic,
Storage {
operation: &'static str,
kind: ErrorKind,
},
CorruptSnapshot(&'static str),
UnsupportedSnapshotVersion(u32),
MissingKey(u64),
EmbeddingFailed(String),
ShardFailed {
shard: usize,
message: String,
},
MutationConflict,
}Expand description
Typed build and query failures.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidConfig(&'static str)
The supplied crate::IndexConfig cannot construct a valid index.
DimensionMismatch
A vector or query did not match the configured dimensionality.
Fields
NonFiniteValue
A vector or query component was NaN or infinite.
Fields
ZeroVector
A stored vector or query had zero magnitude.
DuplicateKey(u64)
More than one stored vector used the same caller-provided key.
DuplicateVectorId
More than one vector used the same key and per-key vector identifier.
CapacityOverflow
Index sizes or degree arithmetic exceeded supported capacity.
AllocationFailed
A fallible reservation for index or query storage failed.
WorkerPanic
A bounded build or query worker panicked.
Storage
A filesystem operation failed while reading or writing an index.
Fields
CorruptSnapshot(&'static str)
A persisted index failed structural or integrity validation.
UnsupportedSnapshotVersion(u32)
The snapshot format is newer or older than this crate understands.
MissingKey(u64)
A requested vector key was not present.
EmbeddingFailed(String)
An embedding provider rejected an input or failed to produce a vector.
ShardFailed
A local or remote search shard failed.
Fields
MutationConflict
Mutations changed while an optimistic compaction was being built.
Trait Implementations§
Source§impl Clone for SearchError
impl Clone for SearchError
Source§fn clone(&self) -> SearchError
fn clone(&self) -> SearchError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SearchError
impl Debug for SearchError
Source§impl Display for SearchError
impl Display for SearchError
impl Eq for SearchError
Source§impl Error for SearchError
impl Error for SearchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()