Update milli/src/update/settings.rs

Co-authored-by: Louis Dureuil <louis@meilisearch.com>
This commit is contained in:
Tamo 2024-09-19 15:41:14 +02:00 committed by GitHub
parent 6dde41cc46
commit b6b73fe41c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1095,6 +1095,7 @@ impl<'a, 't, 'i> Settings<'a, 't, 'i> {
let mut find_free_index =
move || free_indices.find(|(_, free)| **free).map(|(index, _)| index as u8);
for (name, action) in embedder_actions.iter() {
// ignore actions that are not possible for a new embedder
if matches!(action.reindex(), Some(ReindexAction::FullReindex))
&& self.index.embedder_category_id.get(self.wtxn, name)?.is_none()
{