Trait kite::store::IndexStore
[−]
[src]
pub trait IndexStore<'a> { type Reader: IndexReader<'a>; fn reader(&'a self) -> Self::Reader; fn add_field(&mut self,
name: String,
field_type: FieldType)
-> Result<FieldRef, AddFieldError>; fn remove_field(&mut self, field_ref: &FieldRef) -> bool; fn insert_or_update_document(&mut self, doc: Document); fn remove_document_by_key(&mut self, doc_key: &str) -> bool; }
Associated Types
type Reader: IndexReader<'a>
Required Methods
fn reader(&'a self) -> Self::Reader
fn add_field(&mut self,
name: String,
field_type: FieldType)
-> Result<FieldRef, AddFieldError>
name: String,
field_type: FieldType)
-> Result<FieldRef, AddFieldError>
fn remove_field(&mut self, field_ref: &FieldRef) -> bool
fn insert_or_update_document(&mut self, doc: Document)
fn remove_document_by_key(&mut self, doc_key: &str) -> bool
Implementors
impl<'a> IndexStore<'a> for MemoryIndexStore