mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-05 20:26:31 +00:00
Rename the vector store const name and keep the vector-arroy db name
This commit is contained in:
committed by
Louis Dureuil
parent
4d3a9dc43e
commit
db9f205184
@ -68,7 +68,7 @@ pub fn v1_10_to_v1_11(
|
||||
)
|
||||
})?;
|
||||
let index_read_database =
|
||||
try_opening_poly_database(&index_env, &index_rtxn, db_name::VECTOR_HANNOY)
|
||||
try_opening_poly_database(&index_env, &index_rtxn, db_name::VECTOR_STORE)
|
||||
.with_context(|| format!("while updating date format for index `{uid}`"))?;
|
||||
|
||||
let mut index_wtxn = index_env.write_txn().with_context(|| {
|
||||
@ -79,7 +79,7 @@ pub fn v1_10_to_v1_11(
|
||||
})?;
|
||||
|
||||
let index_write_database =
|
||||
try_opening_poly_database(&index_env, &index_wtxn, db_name::VECTOR_HANNOY)
|
||||
try_opening_poly_database(&index_env, &index_wtxn, db_name::VECTOR_STORE)
|
||||
.with_context(|| format!("while updating date format for index `{uid}`"))?;
|
||||
|
||||
// meilisearch_types::milli::hannoy::upgrade::cosine_from_0_4_to_0_5(
|
||||
|
@ -113,7 +113,7 @@ pub mod db_name {
|
||||
pub const FIELD_ID_DOCID_FACET_F64S: &str = "field-id-docid-facet-f64s";
|
||||
pub const FIELD_ID_DOCID_FACET_STRINGS: &str = "field-id-docid-facet-strings";
|
||||
pub const VECTOR_EMBEDDER_CATEGORY_ID: &str = "vector-embedder-category-id";
|
||||
pub const VECTOR_HANNOY: &str = "vector-hannoy";
|
||||
pub const VECTOR_STORE: &str = "vector-arroy";
|
||||
pub const DOCUMENTS: &str = "documents";
|
||||
}
|
||||
const NUMBER_OF_DBS: u32 = 25;
|
||||
|
@ -149,7 +149,7 @@ impl<'t> VectorDocument<'t> for VectorDocumentFromDb<'t> {
|
||||
name,
|
||||
entry_from_raw_value(value, false).map_err(|_| {
|
||||
InternalError::Serialization(crate::SerializationError::Decoding {
|
||||
db_name: Some(crate::index::db_name::VECTOR_HANNOY),
|
||||
db_name: Some(crate::index::db_name::VECTOR_STORE),
|
||||
})
|
||||
})?,
|
||||
))
|
||||
@ -167,7 +167,7 @@ impl<'t> VectorDocument<'t> for VectorDocumentFromDb<'t> {
|
||||
Some(embedding_from_doc) => {
|
||||
Some(entry_from_raw_value(embedding_from_doc, false).map_err(|_| {
|
||||
InternalError::Serialization(crate::SerializationError::Decoding {
|
||||
db_name: Some(crate::index::db_name::VECTOR_HANNOY),
|
||||
db_name: Some(crate::index::db_name::VECTOR_STORE),
|
||||
})
|
||||
})?)
|
||||
}
|
||||
|
Reference in New Issue
Block a user