mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-05-23 11:40:40 +00:00
20 lines
398 B
Rust
20 lines
398 B
Rust
use Result;
|
|
use collector::Collector;
|
|
use core::searcher::Searcher;
|
|
use common::TimerTree;
|
|
use DocAddress;
|
|
use query::Explanation;
|
|
|
|
pub trait Query {
|
|
|
|
fn search<C: Collector>(
|
|
&self,
|
|
searcher: &Searcher,
|
|
collector: &mut C) -> Result<TimerTree>;
|
|
|
|
fn explain(
|
|
&self,
|
|
searcher: &Searcher,
|
|
doc_address: &DocAddress) -> Result<Explanation>;
|
|
}
|