Struct noise_search::index::Index
[−]
[src]
pub struct Index { pub rocks: Option<DB>, // some fields omitted }
Fields
rocks: Option<DB>
Methods
impl Index
[src]
fn new() -> Index
fn open(
&mut self,
name: &str,
open_options: Option<OpenOptions>
) -> Result<(), Error>
&mut self,
name: &str,
open_options: Option<OpenOptions>
) -> Result<(), Error>
fn is_open(&self) -> bool
fn get_name(&self) -> &str
fn new_snapshot(&self) -> Snapshot
fn drop(name: &str) -> Result<(), Error>
fn add(&mut self, json: &str, batch: &mut Batch) -> Result<String, Error>
fn delete(&mut self, docid: &str, batch: &mut Batch) -> Result<bool, Error>
Returns Ok(true) if the document was found and deleted, Ok(false) if it could not be found