mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-24 05:30:16 +01:00
Add a code comment, as suggested in PR review
Co-authored-by: Many the fish <many@meilisearch.com>
This commit is contained in:
parent
fc9f3f31e7
commit
41a0ce07cb
@ -97,6 +97,7 @@ impl<W: Write> DocumentsBatchBuilder<W> {
|
|||||||
.map(|(k, t)| (self.fields_index.insert(k), t))
|
.map(|(k, t)| (self.fields_index.insert(k), t))
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.collect();
|
.collect();
|
||||||
|
// Make sure that we insert the fields ids in order as the obkv writer has this requirement.
|
||||||
typed_fields_ids.sort_unstable_by_key(|(_, (fid, _))| *fid);
|
typed_fields_ids.sort_unstable_by_key(|(_, (fid, _))| *fid);
|
||||||
|
|
||||||
let mut record = csv::StringRecord::new();
|
let mut record = csv::StringRecord::new();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user