mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-28 01:01:00 +00:00
Apply suggestions from code review
Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
committed by
Loïc Lecrenier
parent
bd15f5625a
commit
392472f4bb
@ -32,9 +32,7 @@ pub fn extract_facet_exists_docids<R: io::Read + io::Seek>(
|
||||
let mut cursor = docid_fid_facet_number.into_cursor()?;
|
||||
while let Some((key_bytes, _)) = cursor.move_on_next()? {
|
||||
let (field_id, document_id) = FieldIdDocIdCodec::bytes_decode(key_bytes).unwrap();
|
||||
|
||||
let key_bytes = FieldIdCodec::bytes_encode(&field_id).unwrap();
|
||||
|
||||
facet_exists_docids_sorter.insert(key_bytes, document_id.to_ne_bytes())?;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user