From a5ac1a5463e02a8f9084032b36bae76d67f0e464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Sun, 5 Jan 2020 14:08:57 +0100 Subject: [PATCH] searcher: Remove the unused schema. --- src/index.rs | 1 - src/searcher.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/index.rs b/src/index.rs index 6a05012..a59d2f0 100644 --- a/src/index.rs +++ b/src/index.rs @@ -268,7 +268,6 @@ impl Index { fn searcher(&self) -> Searcher { Searcher { inner: self.reader.searcher(), - schema: self.index.schema(), } } diff --git a/src/searcher.rs b/src/searcher.rs index 243c2b4..20868e0 100644 --- a/src/searcher.rs +++ b/src/searcher.rs @@ -15,7 +15,6 @@ use tantivy::collector::{Count, MultiCollector, TopDocs}; #[pyclass] pub(crate) struct Searcher { pub(crate) inner: tv::LeasedItem, - pub(crate) schema: tv::schema::Schema, } #[pyclass]