mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
Small changes following review
This commit is contained in:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user