mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
update the API a little bit
This commit is contained in:
parent
1a3fea4d8c
commit
6fae317277
8 changed files with 182 additions and 203 deletions
|
@ -503,11 +503,12 @@ impl IndexScheduler {
|
|||
let mut tasks = dump.create_tasks_queue()?;
|
||||
for ret in self.all_tasks.iter(&rtxn)? {
|
||||
let (_, task) = ret?;
|
||||
let mut dump_content_file = tasks.push_task((&task).into())?;
|
||||
let content_file = task.content_uuid().map(|uuid| uuid.clone());
|
||||
let mut dump_content_file = tasks.push_task(&task.into())?;
|
||||
|
||||
// 2.1. Dump the `content_file` associated with the task if there is one.
|
||||
if let Some(content_file) = task.content_uuid() {
|
||||
let content_file = self.file_store.get_update(*content_file)?;
|
||||
if let Some(content_file) = content_file {
|
||||
let content_file = self.file_store.get_update(content_file)?;
|
||||
|
||||
let reader = DocumentsBatchReader::from_reader(content_file)
|
||||
.map_err(milli::Error::from)?;
|
||||
|
|
|
@ -220,6 +220,10 @@ impl IndexScheduler {
|
|||
Ok(this)
|
||||
}
|
||||
|
||||
pub fn import_dump(&self, dump_path: PathBuf) -> Result<()> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
/// This function will execute in a different thread and must be called only once.
|
||||
fn run(&self) {
|
||||
let run = Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue