mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Update milli/src/update/settings.rs
Co-authored-by: Louis Dureuil <louis@meilisearch.com>
This commit is contained in:
parent
6dde41cc46
commit
b6b73fe41c
@ -1095,6 +1095,7 @@ impl<'a, 't, 'i> Settings<'a, 't, 'i> {
|
|||||||
let mut find_free_index =
|
let mut find_free_index =
|
||||||
move || free_indices.find(|(_, free)| **free).map(|(index, _)| index as u8);
|
move || free_indices.find(|(_, free)| **free).map(|(index, _)| index as u8);
|
||||||
for (name, action) in embedder_actions.iter() {
|
for (name, action) in embedder_actions.iter() {
|
||||||
|
// ignore actions that are not possible for a new embedder
|
||||||
if matches!(action.reindex(), Some(ReindexAction::FullReindex))
|
if matches!(action.reindex(), Some(ReindexAction::FullReindex))
|
||||||
&& self.index.embedder_category_id.get(self.wtxn, name)?.is_none()
|
&& self.index.embedder_category_id.get(self.wtxn, name)?.is_none()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user