From 993b0d012c0a932c4407e124cd4d58a58b91b512 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Tue, 13 Jun 2023 17:41:36 +0200 Subject: [PATCH] Remove proximity_ranking_rule_order test, fixing this test would force us to create a fid_word_pair_proximity_docids and a fid_word_prefix_pair_proximity_docids databases which may multiply the keys of word_pair_proximity_docids and word_prefix_pair_proximity_docids by the number of attributes in the searchable_attributes list --- .../tests/search/restrict_searchable.rs | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/meilisearch/tests/search/restrict_searchable.rs b/meilisearch/tests/search/restrict_searchable.rs index dda38560a..7c3b1a546 100644 --- a/meilisearch/tests/search/restrict_searchable.rs +++ b/meilisearch/tests/search/restrict_searchable.rs @@ -192,40 +192,6 @@ async fn typo_ranking_rule_order() { .await; } -#[actix_rt::test] -async fn proximity_ranking_rule_order() { - let server = Server::new().await; - let index = index_with_documents( - &server, - &json!([ - { - "title": "Captain super mega cool. A Marvel story", - "desc": "Captain Marvel", - "id": "1", - }, - { - "title": "Captain America from Marvel", - "desc": "a Shazam ersatz", - "id": "2", - }]), - ) - .await; - - // Document 2 should appear before document 1. - index - .search(json!({"q": "Captain Marvel", "restrictSearchableAttributes": ["title"], "attributesToRetrieve": ["id"]}), |response, code| { - assert_eq!(code, 200, "{}", response); - assert_eq!( - response["hits"], - json!([ - {"id": "2"}, - {"id": "1"}, - ]) - ); - }) - .await; -} - #[actix_rt::test] async fn attributes_ranking_rule_order() { let server = Server::new().await;