mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
bufread documents
This commit is contained in:
parent
df518d8b0b
commit
6cf82ba993
1 changed files with 2 additions and 0 deletions
|
@ -211,6 +211,8 @@ impl Performer for DocumentAddition {
|
||||||
|
|
||||||
println!("parsing documents...");
|
println!("parsing documents...");
|
||||||
|
|
||||||
|
let reader = BufReader::new(reader);
|
||||||
|
|
||||||
let documents = match self.format {
|
let documents = match self.format {
|
||||||
DocumentAdditionFormat::Csv => documents_from_csv(reader)?,
|
DocumentAdditionFormat::Csv => documents_from_csv(reader)?,
|
||||||
DocumentAdditionFormat::Json => documents_from_json(reader)?,
|
DocumentAdditionFormat::Json => documents_from_json(reader)?,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue