Introduce an input field for the facet filters on the http-ui

This commit is contained in:
Clément Renault 2020-11-14 14:01:41 +01:00
parent 2341b99379
commit 218eb97241
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 10 additions and 7 deletions

View file

@ -573,8 +573,9 @@ async fn main() -> anyhow::Result<()> {
search.query(query);
}
if let Some(condition) = query.facet_condition {
let condition = FacetCondition::from_str(&rtxn, &index, &condition).unwrap();
search.facet_condition(condition);
if let Some(condition) = FacetCondition::from_str(&rtxn, &index, &condition).unwrap() {
search.facet_condition(condition);
}
}
let SearchResult { found_words, documents_ids } = search.execute().unwrap();