From 386ffab76c0efdf2d88e5d197e386e0313e40155 Mon Sep 17 00:00:00 2001 From: Antoine G <325288+saroh@users.noreply.github.com> Date: Thu, 5 May 2022 07:59:25 +0200 Subject: [PATCH] Fix documentation regression (#1359) This breaks the doc on doc.rs as the type seems to shadow the struct https://docs.rs/tantivy/latest/tantivy/termdict/type.TermDictionary.html introduced by #1293 which may not have been up to date with what was done in #1242 --- src/termdict/mod.rs | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/termdict/mod.rs b/src/termdict/mod.rs index 324b6a3a6..328bc8acf 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};