Trait perlin::index::Index
[−]
[src]
pub trait Index<'a, TTerm> { type Query; type QueryResult; fn execute_query(&'a self, query: &Self::Query) -> Self::QueryResult; }
The central trait of perlin. Indices tend to differ alot in implementation details.
yet they all share this very basic interface.
Associated Types
type Query
Specifies the query-object type to be used with an Index
type QueryResult
Specifies the result returned from the execute_query()
-method
Required Methods
fn execute_query(&'a self, query: &Self::Query) -> Self::QueryResult
Runs a query and returns all matching documents
Implementors
impl<'a, TTerm: Ord> Index<'a, TTerm> for BooleanIndex<TTerm>