add a comment

This commit is contained in:
Tamo 2021-06-14 10:38:56 +02:00 committed by marin postma
parent f068d7f978
commit 7cb2dcbdf8
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
2 changed files with 4 additions and 2 deletions

View file

@ -277,14 +277,14 @@ impl Index {
if let Some(ref stop_words) = settings.stop_words {
match stop_words {
Some(stop_words) => builder.set_stop_words(stop_words.clone()),
_ => builder.reset_stop_words(),
None => builder.reset_stop_words(),
}
}
if let Some(ref synonyms) = settings.synonyms {
match synonyms {
Some(synonyms) => builder.set_synonyms(synonyms.clone().into_iter().collect()),
_ => builder.reset_synonyms(),
None => builder.reset_synonyms(),
}
}