pub enum IndexConfig {
None,
Standard,
FullText,
Vector {
hnsw_config: HnswConfig,
source: Option<String>,
model: Option<String>,
},
}Expand description
Index configuration for a field.
Variants§
None
No index
Standard
Standard secondary index (hash + range)
FullText
Full-text search index (inverted index with tokenization)
Vector
Vector index using HNSW algorithm
Implementations§
Source§impl IndexConfig
impl IndexConfig
Sourcepub const fn is_indexed(&self) -> bool
pub const fn is_indexed(&self) -> bool
Check if any index is configured.
Sourcepub const fn is_fulltext(&self) -> bool
pub const fn is_fulltext(&self) -> bool
Check if this is a full-text search index.
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 (const: unstable) · 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 PartialEq for IndexConfig
impl PartialEq for IndexConfig
Source§fn eq(&self, other: &IndexConfig) -> bool
fn eq(&self, other: &IndexConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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