mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
fix bug
This commit is contained in:
parent
1639a7338d
commit
dc2e5ceed2
8 changed files with 26 additions and 99 deletions
|
@ -1779,7 +1779,7 @@ async fn update_documents_with_facet_distribution() {
|
|||
server.create_index(body).await;
|
||||
let settings = json!({
|
||||
"attributesForFaceting": ["genre"],
|
||||
"displayedAttributes": ["genre", "type"],
|
||||
"displayedAttributes": ["genre"],
|
||||
"searchableAttributes": ["genre", "type"]
|
||||
});
|
||||
server.update_all_settings(settings).await;
|
||||
|
@ -1809,7 +1809,6 @@ async fn update_documents_with_facet_distribution() {
|
|||
"facetsDistribution": ["genre"]
|
||||
});
|
||||
let (response1, _) = server.search_post(search.clone()).await;
|
||||
println!("response1: {}", response1);
|
||||
let expected_facet_distribution = json!({
|
||||
"genre": {
|
||||
"grunge": 1,
|
||||
|
@ -1828,6 +1827,5 @@ async fn update_documents_with_facet_distribution() {
|
|||
]);
|
||||
server.add_or_update_multiple_documents(update2).await;
|
||||
let (response2, _) = server.search_post(search).await;
|
||||
println!("response2: {}", response2);
|
||||
assert_json_eq!(expected_facet_distribution, response2["facetsDistribution"].clone());
|
||||
}
|
||||
|
|
|
@ -486,15 +486,7 @@ async fn test_displayed_attributes_field() {
|
|||
],
|
||||
"distinctAttribute": "id",
|
||||
"searchableAttributes": [
|
||||
"id",
|
||||
"name",
|
||||
"color",
|
||||
"gender",
|
||||
"email",
|
||||
"phone",
|
||||
"address",
|
||||
"registered",
|
||||
"about"
|
||||
"*"
|
||||
],
|
||||
"displayedAttributes": [
|
||||
"age",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue