mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-03-12 19:11:42 +01:00
Fix the upgrade arroy calls
This commit is contained in:
parent
e91f18bdd0
commit
76968179de
@ -78,9 +78,9 @@ pub fn v1_10_to_v1_11(
|
|||||||
|
|
||||||
meilisearch_types::milli::arroy::upgrade::cosine_from_0_4_to_0_5(
|
meilisearch_types::milli::arroy::upgrade::cosine_from_0_4_to_0_5(
|
||||||
&index_rtxn,
|
&index_rtxn,
|
||||||
index_read_database,
|
index_read_database.remap_types(),
|
||||||
&mut index_wtxn,
|
&mut index_wtxn,
|
||||||
index_write_database,
|
index_write_database.remap_types(),
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
index_wtxn.commit()?;
|
index_wtxn.commit()?;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
use arroy::distances::Cosine;
|
||||||
use heed::RwTxn;
|
use heed::RwTxn;
|
||||||
|
|
||||||
use super::UpgradeIndex;
|
use super::UpgradeIndex;
|
||||||
@ -24,11 +25,11 @@ impl UpgradeIndex for Latest_V1_13_To_Latest_V1_14 {
|
|||||||
progress.update_progress(VectorStore::UpdateInternalVersions);
|
progress.update_progress(VectorStore::UpdateInternalVersions);
|
||||||
|
|
||||||
let rtxn = index.read_txn()?;
|
let rtxn = index.read_txn()?;
|
||||||
arroy::upgrade::cosine_from_0_5_to_0_6(
|
arroy::upgrade::from_0_5_to_0_6::<Cosine>(
|
||||||
&rtxn,
|
&rtxn,
|
||||||
index.vector_arroy,
|
index.vector_arroy.remap_data_type(),
|
||||||
&mut wtxn,
|
wtxn,
|
||||||
index.vector_arroy,
|
index.vector_arroy.remap_data_type(),
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
Ok(true)
|
Ok(true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user