pub enum IndexType {
Ore,
Match {
tokenizer: Tokenizer,
token_filters: Vec<TokenFilter>,
k: usize,
m: usize,
include_original: bool,
},
Unique {
token_filters: Vec<TokenFilter>,
},
SteVec {
prefix: String,
term_filters: Vec<TokenFilter>,
},
}Variants§
Ore
Match
Fields
§
token_filters: Vec<TokenFilter>Unique
This is called Unique because a Hash index must always have a unique constraint on it but it is technically a Determinstic index. Naming is hard.
Fields
§
token_filters: Vec<TokenFilter>SteVec
Implementations§
Source§impl IndexType
impl IndexType
Sourcepub fn supports(&self, op: &Operator, cast_type: &ColumnType) -> bool
pub fn supports(&self, op: &Operator, cast_type: &ColumnType) -> bool
Returns true or false based on the below:
Non string type indexes support:
Ore: Eq | Lt | Lte | Gt | Gte, Unique: Eq
String type indexes support:
Match: Like | ILike Ore: Lt | Lte | Gt | Gte, Unique: Eq
pub fn supported_operations(&self, cast_type: &ColumnType) -> Vec<Operator>
pub fn is_orderable(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IndexType
impl<'de> Deserialize<'de> for IndexType
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 StructuralPartialEq for IndexType
Auto Trait Implementations§
impl Freeze for IndexType
impl RefUnwindSafe for IndexType
impl Send for IndexType
impl Sync for IndexType
impl Unpin for IndexType
impl UnwindSafe for IndexType
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