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

Specifies the query-object type to be used with an Index

Specifies the result returned from the execute_query()-method

Required Methods

Runs a query and returns all matching documents