mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Change the original document sorter key from the internal docid to a concatenation of the internal and the external docid
This commit is contained in:
parent
44e9033b3a
commit
12323d610e
2 changed files with 69 additions and 49 deletions
|
@ -1387,6 +1387,8 @@ mod tests {
|
|||
index.add_documents(documents!({ "a" : { "b" : { "c" : 1 }}})).unwrap();
|
||||
|
||||
let rtxn = index.read_txn().unwrap();
|
||||
let all_documents_count = index.all_documents(&rtxn).unwrap().count();
|
||||
assert_eq!(all_documents_count, 1);
|
||||
let external_documents_ids = index.external_documents_ids();
|
||||
assert!(external_documents_ids.get(&rtxn, "1").unwrap().is_some());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue