mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
fix(http, index): init analyzer with optional stop words
Next release update tokenizer
This commit is contained in:
parent
f881e8691e
commit
51ba1bd7d3
3 changed files with 21 additions and 34 deletions
|
@ -155,7 +155,10 @@ pub struct Highlighter<'a, A> {
|
|||
|
||||
impl<'a, A: AsRef<[u8]>> Highlighter<'a, A> {
|
||||
pub fn new(stop_words: &'a fst::Set<A>) -> Self {
|
||||
let analyzer = Analyzer::new(AnalyzerConfig::default_with_stopwords(stop_words));
|
||||
let mut config = AnalyzerConfig::default();
|
||||
config.stop_words(stop_words);
|
||||
|
||||
let analyzer = Analyzer::new(config);
|
||||
|
||||
Self { analyzer }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue