documetn addition and search

This commit is contained in:
mpostma 2021-01-28 15:14:48 +01:00
parent 74410d8c6b
commit 8183202868
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
6 changed files with 79 additions and 36 deletions

View file

@ -61,7 +61,12 @@ impl Data {
let path = options.db_path.clone();
let indexer_opts = options.indexer_options.clone();
create_dir_all(&path)?;
let index_controller = LocalIndexController::new(&path, indexer_opts)?;
let index_controller = LocalIndexController::new(
&path,
indexer_opts,
options.max_mdb_size.get_bytes(),
options.max_udb_size.get_bytes(),
)?;
let indexes = Arc::new(index_controller);
let mut api_keys = ApiKeys {