mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-06-05 01:50:42 +00:00
delegating the search logic to a query trait.
This commit is contained in:
8
src/query/query.rs
Normal file
8
src/query/query.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use std::io;
|
||||
use collector::Collector;
|
||||
use core::searcher::Searcher;
|
||||
use common::TimerTree;
|
||||
|
||||
pub trait Query {
|
||||
fn search<C: Collector>(&self, searcher: &Searcher, collector: &mut C) -> io::Result<TimerTree>;
|
||||
}
|
||||
Reference in New Issue
Block a user