pub struct IndexConfig {
pub primary_shards: u32,
pub replica_shards: u32,
pub settings: HashMap<String, Value>,
pub mappings: IndexMapping,
pub analyzers: HashMap<String, Analyzer>,
pub aliases: Vec<String>,
pub template: Option<String>,
}Expand description
Search index configuration
Fields§
§primary_shards: u32Number of primary shards
replica_shards: u32Number of replica shards
settings: HashMap<String, Value>Index settings
mappings: IndexMappingField mappings
analyzers: HashMap<String, Analyzer>Custom analyzers
aliases: Vec<String>Index aliases
template: Option<String>Index template
Trait Implementations§
Source§impl Clone for IndexConfig
impl Clone for IndexConfig
Source§impl Debug for IndexConfig
impl Debug 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