NaiveDocument

Trait NaiveDocument 

Source
pub trait NaiveDocument: Document {
    // Required method
    fn term_exists<K>(&self, term: K) -> bool
       where K: Borrow<Self::Term>;
}
Expand description

A naive document with a simple function stating whether or not a term exists in the document or not. The document is naive , which means the frequencies of each term has yet to be determined. This type of document is useful for only some TF weighting schemes.

Required Methods§

Source

fn term_exists<K>(&self, term: K) -> bool
where K: Borrow<Self::Term>,

Returns if a (non-normalized) term exists within the document.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<D, T> NaiveDocument for D
where D: ProcessedDocument<Term = T>,