chore: Rework the data module structures

being able to be constructed from SharedData
This commit is contained in:
Clément Renault 2018-12-31 18:33:59 +01:00
parent c022fa3fca
commit 64d53ee1bd
No known key found for this signature in database
GPG key ID: 0151CDAB43460DAE
15 changed files with 292 additions and 262 deletions

View file

@ -59,10 +59,10 @@ fn index(schema: Schema, database_path: &Path, csv_data_path: &Path) -> Result<D
}
};
update.update_document(&document).unwrap();
update.update_document(&document, &tokenizer_builder)?;
}
let mut update = update.build()?;
let update = update.build()?;
database.ingest_update_file(update)?;
Ok(database)