Skip to content

Commit

Permalink
Make TextAnalyzerBuilder publically accessible (#2097)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
adamreichold committed Jun 22, 2023
1 parent 5996209 commit 4aa131c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/collector/filter_collector_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/tokenizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4aa131c

Please sign in to comment.