diff options
Diffstat (limited to 'examples/custom_collector.rs')
-rw-r--r-- | examples/custom_collector.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/custom_collector.rs b/examples/custom_collector.rs index e63eb9f..c277ede 100644 --- a/examples/custom_collector.rs +++ b/examples/custom_collector.rs @@ -9,15 +9,12 @@ // --- // Importing tantivy... -#[macro_use] -extern crate tantivy; use tantivy::collector::{Collector, SegmentCollector}; use tantivy::fastfield::FastFieldReader; use tantivy::query::QueryParser; use tantivy::schema::Field; use tantivy::schema::{Schema, FAST, INDEXED, TEXT}; -use tantivy::SegmentReader; -use tantivy::{Index, TantivyError}; +use tantivy::{doc, Index, SegmentReader, TantivyError}; #[derive(Default)] struct Stats { |