Introduce a real pest parser and support every facet filter conditions

This commit is contained in:
Clément Renault 2020-11-21 13:09:49 +01:00
parent c52d09d5b1
commit a0adfb5e8e
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
10 changed files with 728 additions and 312 deletions

View file

@ -614,7 +614,8 @@ async fn main() -> anyhow::Result<()> {
search.query(query);
}
if let Some(condition) = query.facet_condition {
if let Some(condition) = FacetCondition::from_str(&rtxn, &index, &condition).unwrap() {
if !condition.trim().is_empty() {
let condition = FacetCondition::from_str(&rtxn, &index, &condition).unwrap();
search.facet_condition(condition);
}
}