Make TextAnalyzerBuilder publically accessible (#2097)

This way, client code can name the type to e.g. store it inside structs without
resorting to generics and it means that its documentation is part of the crate
documentation generated by `cargo doc`.
This commit is contained in:
Adam Reichold
2023-06-22 04:24:21 +02:00
committed by GitHub
parent 59962097d0
commit 4aa131c3db
2 changed files with 4 additions and 4 deletions

View File

@@ -64,9 +64,9 @@ use crate::{DocId, Score, SegmentReader, TantivyError};
/// # }
/// ```
///
/// Note that this is limited to fast fields which implement the [`FastValue`] trait,
/// e.g. `u64` but not `&[u8]`. To filter based on a bytes fast field,
/// use a [`BytesFilterCollector`] instead.
/// Note that this is limited to fast fields which implement the
/// [`FastValue`][crate::fastfield::FastValue] trait, e.g. `u64` but not `&[u8]`.
/// To filter based on a bytes fast field, use a [`BytesFilterCollector`] instead.
pub struct FilterCollector<TCollector, TPredicate, TPredicateValue>
where TPredicate: 'static + Clone
{

View File

@@ -154,7 +154,7 @@ pub use self::split_compound_words::SplitCompoundWords;
pub use self::stemmer::{Language, Stemmer};
pub use self::stop_word_filter::StopWordFilter;
pub use self::tokenized_string::{PreTokenizedStream, PreTokenizedString};
pub use self::tokenizer::TextAnalyzer;
pub use self::tokenizer::{TextAnalyzer, TextAnalyzerBuilder};
pub use self::tokenizer_manager::TokenizerManager;
pub use self::whitespace_tokenizer::WhitespaceTokenizer;