mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +01:00
More relevant test
Co-authored-by: Many the fish <many@meilisearch.com>
This commit is contained in:
parent
16c8437b28
commit
183f23f40d
@ -77,15 +77,15 @@ async fn search_no_searchable_attribute_set() {
|
|||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
index.update_settings_searchable_attributes(json!(["description", "*", "title"])).await;
|
index.update_settings_searchable_attributes(json!(["*"])).await;
|
||||||
index.wait_task(2).await;
|
index.wait_task(2).await;
|
||||||
|
|
||||||
index
|
index
|
||||||
.search(
|
.search(
|
||||||
json!({"q": "Captain Marvel", "attributesToSearchOn": ["unknown"]}),
|
json!({"q": "Captain Marvel", "attributesToSearchOn": ["unknown", "title"]}),
|
||||||
|response, code| {
|
|response, code| {
|
||||||
snapshot!(code, @"200 OK");
|
snapshot!(code, @"200 OK");
|
||||||
snapshot!(response["hits"].as_array().unwrap().len(), @"0");
|
snapshot!(response["hits"].as_array().unwrap().len(), @"2");
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
|
Loading…
Reference in New Issue
Block a user