mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
feat: Introduce a basic RocksDB based version
This commit is contained in:
parent
3a8da82792
commit
4c973238a1
12 changed files with 119 additions and 105 deletions
|
@ -59,7 +59,7 @@ fn index(
|
|||
|
||||
let mut system = sysinfo::System::new();
|
||||
|
||||
let index = database.create_index("default", schema.clone())?;
|
||||
let index = database.create_index("test", schema.clone())?;
|
||||
|
||||
let mut rdr = csv::Reader::from_path(csv_data_path)?;
|
||||
let mut raw_record = csv::StringRecord::new();
|
||||
|
|
|
@ -143,7 +143,7 @@ fn main() -> Result<(), Box<Error>> {
|
|||
let mut buffer = String::new();
|
||||
let input = io::stdin();
|
||||
|
||||
let index = database.open_index("default")?.unwrap();
|
||||
let index = database.open_index("test")?.unwrap();
|
||||
let schema = index.schema();
|
||||
|
||||
println!("database prepared for you in {:.2?}", start.elapsed());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue