mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
WIP: rebasing on master
This commit is contained in:
parent
ceb8d6e1c9
commit
e389c088eb
20 changed files with 540 additions and 433 deletions
|
@ -5,7 +5,6 @@ use std::time::Duration;
|
|||
|
||||
use actix_web::web::{Bytes, Payload};
|
||||
use anyhow::bail;
|
||||
use chrono::{DateTime, Utc};
|
||||
use futures::stream::StreamExt;
|
||||
use log::info;
|
||||
use milli::FieldsDistribution;
|
||||
|
@ -25,6 +24,7 @@ use crate::option::Opt;
|
|||
|
||||
mod index_actor;
|
||||
mod snapshot;
|
||||
mod dump;
|
||||
mod update_actor;
|
||||
mod update_handler;
|
||||
mod updates;
|
||||
|
@ -87,6 +87,13 @@ impl IndexController {
|
|||
options.ignore_snapshot_if_db_exists,
|
||||
options.ignore_missing_snapshot,
|
||||
)?;
|
||||
} else if let Some(ref path) = options.import_dump {
|
||||
load_dump(
|
||||
&options.db_path,
|
||||
path,
|
||||
index_size,
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
std::fs::create_dir_all(&path)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue