mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Use an LMDB database to store the external documents ids
This commit is contained in:
parent
fdf3f7f627
commit
dfab6293c9
7 changed files with 79 additions and 141 deletions
|
@ -612,8 +612,8 @@ fn retrieve_document<S: AsRef<str>>(
|
|||
let all_fields: Vec<_> = fields_ids_map.iter().map(|(id, _)| id).collect();
|
||||
|
||||
let internal_id = index
|
||||
.external_documents_ids(&txn)?
|
||||
.get(doc_id.as_bytes())
|
||||
.external_documents_ids()
|
||||
.get(&txn, doc_id)?
|
||||
.ok_or_else(|| MeilisearchHttpError::DocumentNotFound(doc_id.to_string()))?;
|
||||
|
||||
let document = index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue