diff --git a/src/termdict/mod.rs b/src/termdict/mod.rs index 324b6a3a63..328bc8acfa 100644 --- a/src/termdict/mod.rs +++ b/src/termdict/mod.rs @@ -28,7 +28,6 @@ use fst_termdict as termdict; mod sstable_termdict; #[cfg(feature = "quickwit")] use sstable_termdict as termdict; -use tantivy_fst::automaton::AlwaysMatch; #[cfg(test)] mod tests; @@ -36,24 +35,4 @@ mod tests; /// Position of the term in the sorted list of terms. pub type TermOrdinal = u64; -/// The term dictionary contains all of the terms in -/// `tantivy index` in a sorted manner. -pub type TermDictionary = self::termdict::TermDictionary; - -/// Builder for the new term dictionary. -/// -/// Inserting must be done in the order of the `keys`. -pub type TermDictionaryBuilder = self::termdict::TermDictionaryBuilder; - -/// Given a list of sorted term streams, -/// returns an iterator over sorted unique terms. -/// -/// The item yield is actually a pair with -/// - the term -/// - a slice with the ordinal of the segments containing -/// the terms. -pub type TermMerger<'a> = self::termdict::TermMerger<'a>; - -/// `TermStreamer` acts as a cursor over a range of terms of a segment. -/// Terms are guaranteed to be sorted. -pub type TermStreamer<'a, A = AlwaysMatch> = self::termdict::TermStreamer<'a, A>; +pub use self::termdict::{TermDictionary, TermDictionaryBuilder, TermMerger, TermStreamer};