Trait pallet::search::Searcher[][src]

pub trait Searcher<T: DocumentLike> {
    type Item;
    type Error: From<Error>;
    fn search(&self, store: &Store<T>) -> Result<Self::Item, Self::Error>;
}

Items that function as search parameters

Associated Types

Loading content...

Required methods

fn search(&self, store: &Store<T>) -> Result<Self::Item, Self::Error>[src]

Loading content...

Implementors

impl<Q, C, H, O, T, E> Searcher<T> for Params<Q, Collector<C>, Handler<H>> where
    Q: AsQuery,
    E: From<Error>,
    C: Collector,
    H: Fn(C::Fruit) -> Result<O, E>,
    T: DocumentLike
[src]

type Item = O

type Error = E

impl<Q, T> Searcher<T> for Q where
    Q: AsQuery,
    T: DocumentLike + Send,
    T::IndexFieldsType: Sync
[src]

type Item = Results<T>

type Error = Error

Loading content...