Skip to content

Commit 304f4c2

Browse files
committed
add deprecation warning
1 parent 93e39f7 commit 304f4c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ pub use crate::postings::Postings;
186186
pub use crate::schema::DatePrecision;
187187
pub use crate::schema::{DateOptions, DateTimePrecision, Document, TantivyDocument, Term};
188188

189+
#[deprecated("Will be removed in tantivy 0.23. Use export from snippet module instead")]
190+
pub use self::snippet::{Snippet, SnippetGenerator};
191+
192+
#[deprecated("Will be removed in tantivy 0.23. Use export from indexer module instead")]
193+
pub use crate::indexer::{merge_filtered_segments, merge_indices, IndexWriter, PreparedCommit};
194+
189195
/// Index format version.
190196
const INDEX_FORMAT_VERSION: u32 = 5;
191197

0 commit comments

Comments
 (0)