mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Replace the legacy Settings::execute by the new one
This commit is contained in:
parent
3aa6c3c750
commit
82fe80b360
14 changed files with 137 additions and 41 deletions
|
@ -44,7 +44,7 @@ pub fn setup_search_index_with_criteria(criteria: &[Criterion]) -> Index {
|
|||
S("america") => vec![S("the united states")],
|
||||
});
|
||||
builder.set_searchable_fields(vec![S("title"), S("description")]);
|
||||
builder.execute(|_| (), || false, Default::default()).unwrap();
|
||||
builder.execute(&|| false, &Progress::default()).unwrap();
|
||||
wtxn.commit().unwrap();
|
||||
|
||||
// index documents
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue