mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02: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
1 changed files with 1 additions and 0 deletions
|
@ -97,6 +97,7 @@ impl<W: Write> DocumentsBatchBuilder<W> {
|
|||
.map(|(k, t)| (self.fields_index.insert(k), t))
|
||||
.enumerate()
|
||||
.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);
|
||||
|
||||
let mut record = csv::StringRecord::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue