pub enum IndexConfig {
Text {
language: String,
analyzer: Option<String>,
},
Vector {
algorithm: VectorIndexAlgorithm,
metric: DistanceMetric,
m: usize,
ef_construction: usize,
},
BTree,
Hash,
}
Expand description
Index configuration for a field
Variants§
Text
Full-text search index with inverted index
Vector
Vector similarity search index (HNSW)
BTree
B-tree index for range queries and exact matches
Hash
Hash index for exact matches only (faster than BTree)
Trait Implementations§
Source§impl Clone for IndexConfig
impl Clone for IndexConfig
Source§fn clone(&self) -> IndexConfig
fn clone(&self) -> IndexConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IndexConfig
impl Debug for IndexConfig
Source§impl<'de> Deserialize<'de> for IndexConfig
impl<'de> Deserialize<'de> for IndexConfig
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
Source§impl PartialEq for IndexConfig
impl PartialEq for IndexConfig
Source§impl Serialize for IndexConfig
impl Serialize for IndexConfig
impl StructuralPartialEq for IndexConfig
Auto Trait Implementations§
impl Freeze for IndexConfig
impl RefUnwindSafe for IndexConfig
impl Send for IndexConfig
impl Sync for IndexConfig
impl Unpin for IndexConfig
impl UnwindSafe for IndexConfig
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