mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Fix tests
This commit is contained in:
parent
c9708f7d0c
commit
a082f14c69
25 changed files with 94 additions and 115 deletions
|
@ -41,7 +41,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
options.map_size(100 * 1024 * 1024 * 1024); // 100 GB
|
||||
|
||||
std::fs::create_dir_all(&index_path).unwrap();
|
||||
let index = Index::new(options, index_path).unwrap();
|
||||
let index = Index::new(program_name.as_str(), options, index_path).unwrap();
|
||||
let mut wtxn = index.write_txn().unwrap();
|
||||
|
||||
let config = IndexerConfig::default();
|
||||
|
|
|
@ -28,7 +28,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
let mut options = EnvOpenOptions::new();
|
||||
options.map_size(100 * 1024 * 1024 * 1024); // 100 GB
|
||||
|
||||
let index = Index::new(options, dataset)?;
|
||||
let index = Index::new(program_name.as_str(), options, dataset)?;
|
||||
let txn = index.read_txn()?;
|
||||
let mut query = String::new();
|
||||
while stdin().read_line(&mut query)? > 0 {
|
||||
|
|
|
@ -10,7 +10,7 @@ fn main() {
|
|||
let mut options = EnvOpenOptions::new();
|
||||
options.map_size(100 * 1024 * 1024 * 1024); // 100 GB
|
||||
|
||||
let index = Index::new(options, "data_movies.ms").unwrap();
|
||||
let index = Index::new("", options, "data_movies.ms").unwrap();
|
||||
let mut wtxn = index.write_txn().unwrap();
|
||||
|
||||
let config = IndexerConfig::default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue