pub struct FieldEntry {
pub name: String,
pub field_type: FieldType,
pub indexed: bool,
pub stored: bool,
pub tokenizer: Option<String>,
pub multi: bool,
pub positions: Option<PositionMode>,
pub sparse_vector_config: Option<SparseVectorConfig>,
pub dense_vector_config: Option<DenseVectorConfig>,
pub fast: bool,
pub primary_key: bool,
pub reorder: bool,
}Expand description
Field options
Fields§
§name: String§field_type: FieldType§indexed: bool§stored: bool§tokenizer: Option<String>Name of the tokenizer to use for this field (for text fields)
multi: boolWhether this field can have multiple values (serialized as array in JSON)
positions: Option<PositionMode>Position tracking mode for phrase queries and multi-field element tracking
sparse_vector_config: Option<SparseVectorConfig>Configuration for sparse vector fields (index size, weight quantization)
dense_vector_config: Option<DenseVectorConfig>Configuration for dense vector fields (dimension, quantization)
fast: boolWhether this field has columnar fast-field storage for O(1) doc→value access. Valid for u64, i64, f64, and text fields.
primary_key: boolWhether this field is a primary key (unique constraint, at most one per schema)
reorder: boolWhether build-time document reordering (Recursive Graph Bisection) is enabled. Valid for sparse_vector fields with BMP format. Clusters similar documents into the same blocks for better pruning effectiveness.
Trait Implementations§
Source§impl Clone for FieldEntry
impl Clone for FieldEntry
Source§fn clone(&self) -> FieldEntry
fn clone(&self) -> FieldEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FieldEntry
impl Debug for FieldEntry
Source§impl<'de> Deserialize<'de> for FieldEntry
impl<'de> Deserialize<'de> for FieldEntry
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>,
Auto Trait Implementations§
impl Freeze for FieldEntry
impl RefUnwindSafe for FieldEntry
impl Send for FieldEntry
impl Sync for FieldEntry
impl Unpin for FieldEntry
impl UnsafeUnpin for FieldEntry
impl UnwindSafe for FieldEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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.