[−][src]Struct elasticlunr::document_store::DocumentStore
The document store saves the complete text of each item saved to the index, if enabled. Most users do not need to use this type directly.
Fields
save: bool
docs: BTreeMap<String, BTreeMap<String, String>>
doc_info: BTreeMap<String, BTreeMap<String, usize>>
length: usize
Methods
impl DocumentStore
[src]
pub fn new(save: bool) -> Self
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn is_stored(&self) -> bool
[src]
pub fn has_doc(&self, doc_ref: &str) -> bool
[src]
pub fn add_doc(&mut self, doc_ref: &str, doc: BTreeMap<String, String>)
[src]
pub fn get_doc(&self, doc_ref: &str) -> Option<BTreeMap<String, String>>
[src]
pub fn remove_doc(&mut self, doc_ref: &str)
[src]
pub fn add_field_length(&mut self, doc_ref: &str, field: &str, length: usize)
[src]
pub fn get_field_length(&self, doc_ref: &str, field: &str) -> usize
[src]
Trait Implementations
impl Clone for DocumentStore
[src]
fn clone(&self) -> DocumentStore
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DocumentStore
[src]
impl<'de> Deserialize<'de> for DocumentStore
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for DocumentStore
[src]
Auto Trait Implementations
impl RefUnwindSafe for DocumentStore
impl Send for DocumentStore
impl Sync for DocumentStore
impl Unpin for DocumentStore
impl UnwindSafe for DocumentStore
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,