mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-06 12:46:31 +00:00
Use Hannoy instead of arroy
This commit is contained in:
committed by
Louis Dureuil
parent
eda77aeb1a
commit
bf921e9135
@ -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_ARROY)
|
||||
try_opening_poly_database(&index_env, &index_rtxn, db_name::VECTOR_HANNOY)
|
||||
.with_context(|| format!("while updating date format for index `{uid}`"))?;
|
||||
|
||||
let mut index_wtxn = index_env.write_txn().with_context(|| {
|
||||
@ -79,15 +79,16 @@ pub fn v1_10_to_v1_11(
|
||||
})?;
|
||||
|
||||
let index_write_database =
|
||||
try_opening_poly_database(&index_env, &index_wtxn, db_name::VECTOR_ARROY)
|
||||
try_opening_poly_database(&index_env, &index_wtxn, db_name::VECTOR_HANNOY)
|
||||
.with_context(|| format!("while updating date format for index `{uid}`"))?;
|
||||
|
||||
meilisearch_types::milli::arroy::upgrade::cosine_from_0_4_to_0_5(
|
||||
&index_rtxn,
|
||||
index_read_database.remap_types(),
|
||||
&mut index_wtxn,
|
||||
index_write_database.remap_types(),
|
||||
)?;
|
||||
// meilisearch_types::milli::hannoy::upgrade::cosine_from_0_4_to_0_5(
|
||||
// &index_rtxn,
|
||||
// index_read_database.remap_types(),
|
||||
// &mut index_wtxn,
|
||||
// index_write_database.remap_types(),
|
||||
// )?;
|
||||
unimplemented!("Hannoy doesn't support upgrading");
|
||||
|
||||
index_wtxn.commit()?;
|
||||
}
|
||||
|
Reference in New Issue
Block a user