mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Small changes following review
This commit is contained in:
parent
3f212a8202
commit
e35ef31738
4 changed files with 14 additions and 12 deletions
|
@ -101,13 +101,6 @@ pub struct WriteBackToDocuments {
|
|||
}
|
||||
|
||||
impl SettingsDiff {
|
||||
pub fn should_reindex(&self) -> bool {
|
||||
match self {
|
||||
SettingsDiff::Remove { .. } | SettingsDiff::Reindex { .. } => true,
|
||||
SettingsDiff::UpdateWithoutReindex { .. } => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_settings(old: EmbeddingSettings, new: Setting<EmbeddingSettings>) -> Self {
|
||||
match new {
|
||||
Setting::Set(new) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue