Update phrase search to use new execute method

This commit is contained in:
Samyak S Sarnayak 2022-10-26 23:07:20 +05:30
parent 488d31ecdf
commit 752d031010
No known key found for this signature in database
GPG Key ID: 365873F2F0C6153B

View File

@ -10,7 +10,7 @@ fn set_stop_words(index: &Index, stop_words: &[&str]) {
let mut builder = Settings::new(&mut wtxn, &index, &config);
let stop_words = stop_words.into_iter().map(|s| s.to_string()).collect();
builder.set_stop_words(stop_words);
builder.execute(|_| ()).unwrap();
builder.execute(|_| (), || false).unwrap();
wtxn.commit().unwrap();
}