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