Use none when there is no name available

This commit is contained in:
Francesco Allara 2024-02-14 11:53:37 +01:00
parent b1bc505807
commit f9cf0d06ec

View File

@ -13,7 +13,7 @@ pub fn setup_search_index_with_criteria(criteria: &[Criterion]) -> Index {
let path = tempfile::tempdir().unwrap();
let mut options = EnvOpenOptions::new();
options.map_size(10 * 1024 * 1024); // 10 MB
let index = Index::new(Some("".to_string()), options, &path).unwrap();
let index = Index::new(None, options, &path).unwrap();
let mut wtxn = index.write_txn().unwrap();
let config = IndexerConfig::default();