pub enum IndexKind {
Ordered,
Text {
consistency: TextConsistency,
},
Structural {
dimensions: u32,
},
}Expand description
What an index answers.
Variants§
Ordered
Ordered entries (value, owner): equality, $in, ranges, prefix.
Text
Full-text (BM25) over the property’s string values — every string
property of the record when the property is TEXT_ALL_PROPERTIES.
Maintained by the text applier from pending rows.
Fields
§
consistency: TextConsistencyWhen a search sees a write.
Structural
Structural embeddings: one vector per record of the label, derived
from the graph around it (FastRP over every relationship, ignoring
direction), bound into the vector space named after the index.
Maintained by the structural applier from pending rows: a
relationship or record change marks the records within two hops.
Its property is TEXT_ALL_PROPERTIES: it reads topology, not a
property.
Implementations§
Trait Implementations§
impl Copy for IndexKind
Source§impl<'de> Deserialize<'de> for IndexKind
impl<'de> Deserialize<'de> for IndexKind
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 IndexKind
impl StructuralPartialEq for IndexKind
Auto Trait Implementations§
impl Freeze for IndexKind
impl RefUnwindSafe for IndexKind
impl Send for IndexKind
impl Sync for IndexKind
impl Unpin for IndexKind
impl UnsafeUnpin for IndexKind
impl UnwindSafe for IndexKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.