meilisearch/milli
bors[bot] 07fb6d64e5
Merge #386
386: fix obkv document r=curquiza a=MarinPostma

When serializing a document, the serializer resolved the field_id of the current field and immediately added it to the obkv document under construction. The issue with that is that obkv expects the fields to be inserted in order, and when a document with out of order fields was added, obkv failed to insert the field.

The current fix first resolves each field_id, and adds all the fields to a temporary `BTreeMap`, until `end` is called on the map serializer, where all the fields are added to the obkv at once, and in order.


Co-authored-by: mpostma <postma.marin@protonmail.com>
2021-10-11 13:45:04 +00:00
..
src add obkv document serialization test 2021-10-11 15:13:17 +02:00
tests Implement documents format 2021-09-21 16:58:33 +02:00
Cargo.toml Update version for the next release (v0.17.2) 2021-10-11 15:20:35 +02:00