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<IndexSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndexSpec
Source§impl Serialize for IndexSpec
impl Serialize for IndexSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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