mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-11 05:54:30 +01:00
Extract field value as values instead of Option<Value>
This commit is contained in:
parent
03ddb4f310
commit
f19332466e
@ -102,11 +102,11 @@ pub fn extract_fid_docid_facet_values<R: io::Read + io::Seek>(
|
|||||||
|
|
||||||
let del_add_obkv = obkv::KvReader::new(field_bytes);
|
let del_add_obkv = obkv::KvReader::new(field_bytes);
|
||||||
let del_value = match del_add_obkv.get(DelAdd::Deletion) {
|
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,
|
None => None,
|
||||||
};
|
};
|
||||||
let add_value = match del_add_obkv.get(DelAdd::Addition) {
|
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,
|
None => None,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user