mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-06 04:36:32 +00:00
Rename the vector store const name and keep the vector-arroy db name
This commit is contained in:
@ -68,7 +68,7 @@ pub fn v1_10_to_v1_11(
|
|||||||
)
|
)
|
||||||
})?;
|
})?;
|
||||||
let index_read_database =
|
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}`"))?;
|
.with_context(|| format!("while updating date format for index `{uid}`"))?;
|
||||||
|
|
||||||
let mut index_wtxn = index_env.write_txn().with_context(|| {
|
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 =
|
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}`"))?;
|
.with_context(|| format!("while updating date format for index `{uid}`"))?;
|
||||||
|
|
||||||
// meilisearch_types::milli::hannoy::upgrade::cosine_from_0_4_to_0_5(
|
// 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_F64S: &str = "field-id-docid-facet-f64s";
|
||||||
pub const FIELD_ID_DOCID_FACET_STRINGS: &str = "field-id-docid-facet-strings";
|
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_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";
|
pub const DOCUMENTS: &str = "documents";
|
||||||
}
|
}
|
||||||
const NUMBER_OF_DBS: u32 = 25;
|
const NUMBER_OF_DBS: u32 = 25;
|
||||||
|
@ -149,7 +149,7 @@ impl<'t> VectorDocument<'t> for VectorDocumentFromDb<'t> {
|
|||||||
name,
|
name,
|
||||||
entry_from_raw_value(value, false).map_err(|_| {
|
entry_from_raw_value(value, false).map_err(|_| {
|
||||||
InternalError::Serialization(crate::SerializationError::Decoding {
|
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(embedding_from_doc) => {
|
||||||
Some(entry_from_raw_value(embedding_from_doc, false).map_err(|_| {
|
Some(entry_from_raw_value(embedding_from_doc, false).map_err(|_| {
|
||||||
InternalError::Serialization(crate::SerializationError::Decoding {
|
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