From f19332466eea45212bbefaa37e4736b5917511c4 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Tue, 31 Oct 2023 16:35:38 +0100 Subject: [PATCH] Extract field value as values instead of Option --- .../index_documents/extract/extract_fid_docid_facet_values.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, };