pub struct IndexSpec {
pub kind: IndexKind,
pub pq_subspaces: Option<u32>,
}Expand description
Which index a collection uses and how its vectors are compressed (ADR-0007, ADR-0008). Defaults to in-memory HNSW with no quantization (exact search).
Fields§
§kind: IndexKindThe index structure.
pq_subspaces: Option<u32>Product-quantization subspaces for quantized kinds (the disk graph,
IVF+PQ). None selects a kind-appropriate default or no quantization.
Trait Implementations§
impl Copy for IndexSpec
Source§impl<'de> Deserialize<'de> for IndexSpec
impl<'de> Deserialize<'de> for IndexSpec
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 Eq for IndexSpec
impl StructuralPartialEq for IndexSpec
Auto Trait Implementations§
impl Freeze for IndexSpec
impl RefUnwindSafe for IndexSpec
impl Send for IndexSpec
impl Sync for IndexSpec
impl Unpin for IndexSpec
impl UnsafeUnpin for IndexSpec
impl UnwindSafe for IndexSpec
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