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:
ManyTheFish 2023-10-31 16:46:16 +01:00
parent 44e9033b3a
commit 12323d610e
2 changed files with 69 additions and 49 deletions

View file

@ -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());
}