From 304f4c26530ac23b179c7df2324b636aea806179 Mon Sep 17 00:00:00 2001 From: Pascal Seitz Date: Wed, 18 Oct 2023 12:45:06 +0800 Subject: [PATCH] add deprecation warning --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index f79c5b5498..310f93466c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -186,6 +186,12 @@ pub use crate::postings::Postings; pub use crate::schema::DatePrecision; pub use crate::schema::{DateOptions, DateTimePrecision, Document, TantivyDocument, Term}; +#[deprecated("Will be removed in tantivy 0.23. Use export from snippet module instead")] +pub use self::snippet::{Snippet, SnippetGenerator}; + +#[deprecated("Will be removed in tantivy 0.23. Use export from indexer module instead")] +pub use crate::indexer::{merge_filtered_segments, merge_indices, IndexWriter, PreparedCommit}; + /// Index format version. const INDEX_FORMAT_VERSION: u32 = 5;