mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
More relevant test
Co-authored-by: Many the fish <many@meilisearch.com>
This commit is contained in:
parent
16c8437b28
commit
183f23f40d
1 changed files with 3 additions and 3 deletions
|
@ -77,15 +77,15 @@ async fn search_no_searchable_attribute_set() {
|
|||
)
|
||||
.await;
|
||||
|
||||
index.update_settings_searchable_attributes(json!(["description", "*", "title"])).await;
|
||||
index.update_settings_searchable_attributes(json!(["*"])).await;
|
||||
index.wait_task(2).await;
|
||||
|
||||
index
|
||||
.search(
|
||||
json!({"q": "Captain Marvel", "attributesToSearchOn": ["unknown"]}),
|
||||
json!({"q": "Captain Marvel", "attributesToSearchOn": ["unknown", "title"]}),
|
||||
|response, code| {
|
||||
snapshot!(code, @"200 OK");
|
||||
snapshot!(response["hits"].as_array().unwrap().len(), @"0");
|
||||
snapshot!(response["hits"].as_array().unwrap().len(), @"2");
|
||||
},
|
||||
)
|
||||
.await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue