diff --git a/src/update/index_documents/store.rs b/src/update/index_documents/store.rs index 3182e2ccd..9c75f10fe 100644 --- a/src/update/index_documents/store.rs +++ b/src/update/index_documents/store.rs @@ -586,9 +586,11 @@ fn parse_facet_value(ftype: FacetType, value: &Value) -> anyhow::Result { + let string = string.trim(); + if string.is_empty() { return Ok(()) } match ftype { FacetType::String => { - let string = SmallString32::from(string.as_str()); + let string = SmallString32::from(string); Ok(output.push(String(string))) }, FacetType::Float => match string.parse() {