pub struct VectorPrimaryConfig {
pub vector_field: String,
pub dim: u32,
pub quantization: VectorQuantization,
pub m: u8,
pub ef_construction: u16,
pub metric: DistanceMetric,
pub payload_indexes: Vec<(String, PayloadIndexKind)>,
}Expand description
Configuration for a vector-primary collection.
Stored in StoredCollection::vector_primary when primary == PrimaryEngine::Vector.
All options correspond to HNSW construction parameters and codec selection for the
primary vector index.
Fields§
§vector_field: StringThe name of the column that holds vector data (must be of type VECTOR(n)).
dim: u32Vector dimensionality.
quantization: VectorQuantizationQuantization codec for the primary HNSW index.
m: u8HNSW M parameter (number of connections per node).
ef_construction: u16HNSW ef_construction parameter (beam width during index construction).
metric: DistanceMetricDistance metric used for similarity search.
payload_indexes: Vec<(String, PayloadIndexKind)>Payload field names that receive in-memory bitmap indexes for fast pre-filtering, paired with the storage kind (Equality / Range / Boolean). The DDL handler infers the kind from the column type: numeric / timestamp / decimal → Range; bool → Boolean; everything else → Equality.
Trait Implementations§
Source§impl Clone for VectorPrimaryConfig
impl Clone for VectorPrimaryConfig
Source§fn clone(&self) -> VectorPrimaryConfig
fn clone(&self) -> VectorPrimaryConfig
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 VectorPrimaryConfig
impl Debug for VectorPrimaryConfig
Source§impl Default for VectorPrimaryConfig
impl Default for VectorPrimaryConfig
Source§impl<'de> Deserialize<'de> for VectorPrimaryConfig
impl<'de> Deserialize<'de> for VectorPrimaryConfig
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>,
Source§impl<'__msgpack_de> FromMessagePack<'__msgpack_de> for VectorPrimaryConfig
impl<'__msgpack_de> FromMessagePack<'__msgpack_de> for VectorPrimaryConfig
Source§impl PartialEq for VectorPrimaryConfig
impl PartialEq for VectorPrimaryConfig
Source§fn eq(&self, other: &VectorPrimaryConfig) -> bool
fn eq(&self, other: &VectorPrimaryConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for VectorPrimaryConfig
impl Serialize for VectorPrimaryConfig
Source§impl ToMessagePack for VectorPrimaryConfig
impl ToMessagePack for VectorPrimaryConfig
impl StructuralPartialEq for VectorPrimaryConfig
Auto Trait Implementations§
impl Freeze for VectorPrimaryConfig
impl RefUnwindSafe for VectorPrimaryConfig
impl Send for VectorPrimaryConfig
impl Sync for VectorPrimaryConfig
impl Unpin for VectorPrimaryConfig
impl UnsafeUnpin for VectorPrimaryConfig
impl UnwindSafe for VectorPrimaryConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.