Struct elasticlunr::inverted_index::InvertedIndex [−][src]
pub struct InvertedIndex { /* fields omitted */ }
Implements an elasticlunr.js inverted index. Most users do not need to use this type directly.
Methods
impl InvertedIndex
[src]
impl InvertedIndex
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn add_token(&mut self, doc_ref: &str, token: &str, term_freq: f64)
[src]
pub fn add_token(&mut self, doc_ref: &str, token: &str, term_freq: f64)
pub fn has_token(&self, token: &str) -> bool
[src]
pub fn has_token(&self, token: &str) -> bool
pub fn remove_token(&mut self, doc_ref: &str, token: &str)
[src]
pub fn remove_token(&mut self, doc_ref: &str, token: &str)
pub fn get_docs(&self, token: &str) -> Option<BTreeMap<String, f64>>
[src]
pub fn get_docs(&self, token: &str) -> Option<BTreeMap<String, f64>>
pub fn get_term_frequency(&self, doc_ref: &str, token: &str) -> f64
[src]
pub fn get_term_frequency(&self, doc_ref: &str, token: &str) -> f64
pub fn get_doc_frequency(&self, token: &str) -> i64
[src]
pub fn get_doc_frequency(&self, token: &str) -> i64
Trait Implementations
impl Debug for InvertedIndex
[src]
impl Debug for InvertedIndex
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for InvertedIndex
[src]
impl PartialEq for InvertedIndex
fn eq(&self, other: &InvertedIndex) -> bool
[src]
fn eq(&self, other: &InvertedIndex) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &InvertedIndex) -> bool
[src]
fn ne(&self, other: &InvertedIndex) -> bool
This method tests for !=
.
impl Default for InvertedIndex
[src]
impl Default for InvertedIndex
fn default() -> InvertedIndex
[src]
fn default() -> InvertedIndex
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for InvertedIndex
impl Send for InvertedIndex
impl Sync for InvertedIndex
impl Sync for InvertedIndex