fix phrase search

This commit is contained in:
ad hoc 2022-02-01 20:10:16 +01:00
parent 38d23546a5
commit d852dc0d2b
No known key found for this signature in database
GPG key ID: 4F00A782990CC643
2 changed files with 46 additions and 15 deletions

View file

@ -448,8 +448,10 @@ impl Search {
#[derive(Debug, StructOpt)]
struct SettingsUpdate {
#[structopt(short, long)]
#[structopt(long)]
filterable_attributes: Option<Vec<String>>,
#[structopt(long)]
criteria: Option<Vec<String>>,
}
impl Performer for SettingsUpdate {
@ -468,6 +470,14 @@ impl Performer for SettingsUpdate {
}
}
if let Some(criteria) = self.criteria {
if !criteria.is_empty() {
update.set_criteria(criteria);
} else {
update.reset_criteria();
}
}
let mut bars = Vec::new();
let progesses = MultiProgress::new();
for _ in 0..4 {