From 6cf82ba993fb74364a7b84844a0bf93d2f04495a Mon Sep 17 00:00:00 2001 From: ad hoc Date: Mon, 7 Mar 2022 10:29:52 +0100 Subject: [PATCH 1/2] bufread documents --- cli/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/src/main.rs b/cli/src/main.rs index 11e203f4d..065be01f8 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -211,6 +211,8 @@ impl Performer for DocumentAddition { println!("parsing documents..."); + let reader = BufReader::new(reader); + let documents = match self.format { DocumentAdditionFormat::Csv => documents_from_csv(reader)?, DocumentAdditionFormat::Json => documents_from_json(reader)?, From db3a1905de637286d5b37c9a9fbeda87dc74c69f Mon Sep 17 00:00:00 2001 From: ad hoc Date: Mon, 7 Mar 2022 10:30:47 +0100 Subject: [PATCH 2/2] default db path --- cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index 065be01f8..f349325a7 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -23,7 +23,7 @@ static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; #[derive(Debug, StructOpt)] #[structopt(name = "Milli CLI", about = "A simple CLI to manipulate a milli index.")] struct Cli { - #[structopt(short, long)] + #[structopt(short, long, default_value = ".")] index_path: PathBuf, #[structopt(short = "s", long, default_value = "100GiB")] index_size: Byte,