diff --git a/milli/src/update/index_documents/extract/extract_fid_docid_facet_values.rs b/milli/src/update/index_documents/extract/extract_fid_docid_facet_values.rs index 87320a675..2dce90cfc 100644 --- a/milli/src/update/index_documents/extract/extract_fid_docid_facet_values.rs +++ b/milli/src/update/index_documents/extract/extract_fid_docid_facet_values.rs @@ -102,11 +102,11 @@ pub fn extract_fid_docid_facet_values( let del_add_obkv = obkv::KvReader::new(field_bytes); let del_value = match del_add_obkv.get(DelAdd::Deletion) { - Some(bytes) => from_slice(bytes).map_err(InternalError::SerdeJson)?, + Some(bytes) => Some(from_slice(bytes).map_err(InternalError::SerdeJson)?), None => None, }; let add_value = match del_add_obkv.get(DelAdd::Addition) { - Some(bytes) => from_slice(bytes).map_err(InternalError::SerdeJson)?, + Some(bytes) => Some(from_slice(bytes).map_err(InternalError::SerdeJson)?), None => None, };