fix the bad index version on opening

This commit is contained in:
Tamo 2025-01-23 12:31:10 +01:00 committed by Louis Dureuil
parent 4f21ee6c66
commit 7197ced673
No known key found for this signature in database
16 changed files with 31 additions and 21 deletions

View file

@ -173,10 +173,11 @@ fn rebuild_field_distribution(db_path: &Path) -> anyhow::Result<()> {
println!("\t- Rebuilding field distribution");
let index = meilisearch_types::milli::Index::new(EnvOpenOptions::new(), &index_path)
.with_context(|| {
format!("while opening index {uid} at '{}'", index_path.display())
})?;
let index =
meilisearch_types::milli::Index::new(EnvOpenOptions::new(), &index_path, false)
.with_context(|| {
format!("while opening index {uid} at '{}'", index_path.display())
})?;
let mut index_txn = index.write_txn()?;