Don't make the type-that-shall-not-be-written serializable

Following tamo's advice

Co-Authored-By: Tamo <tamo@meilisearch.com>
This commit is contained in:
Louis Dureuil 2025-07-08 10:02:25 +02:00
parent 5f8f48ec95
commit 4623691d1f
No known key found for this signature in database

View file

@ -1,6 +1,6 @@
use heed::RwTxn; use heed::RwTxn;
use roaring::RoaringBitmap; use roaring::RoaringBitmap;
use serde::{Deserialize, Serialize}; use serde::Deserialize;
use super::UpgradeIndex; use super::UpgradeIndex;
use crate::progress::Progress; use crate::progress::Progress;
@ -34,7 +34,7 @@ impl UpgradeIndex for Latest_V1_14_To_Latest_V1_15 {
/// # Warning /// # Warning
/// ///
/// This object should not be rewritten to the DB, only read to get the name and `user_provided` roaring. /// This object should not be rewritten to the DB, only read to get the name and `user_provided` roaring.
#[derive(Debug, Deserialize, Serialize)] #[derive(Debug, Deserialize)]
pub struct IndexEmbeddingConfig { pub struct IndexEmbeddingConfig {
pub name: String, pub name: String,
pub user_provided: RoaringBitmap, pub user_provided: RoaringBitmap,