pub fn load_dictionary_from_db<P: AsRef<Path> + Debug>(
content_path: P,
database: &Database,
fingerprint: Fp,
) -> Result<Dictionary, DictError>Expand description
Load dictionary using a database-backed index reader.
The content file is read from disk; index lookups are served from the
database. Returns an error if the dictionary has not yet been registered
in dictionary_index_meta — this happens when the indexing task has not
run yet for this file. The caller should skip the dictionary in that case
and retry after indexing completes.