Support a basic version of the string facet query system

This commit is contained in:
Clément Renault
2020-11-20 12:59:29 +01:00
parent 498f0d8539
commit c52d09d5b1
3 changed files with 68 additions and 20 deletions

View File

@ -586,7 +586,7 @@ fn parse_facet_value(ftype: FacetType, value: &Value) -> anyhow::Result<SmallVec
},
},
Value::String(string) => {
let string = string.trim();
let string = string.trim().to_lowercase();
if string.is_empty() { return Ok(()) }
match ftype {
FacetType::String => {