Skip to content

Commit 59d77d3

Browse files
authored
Merge pull request #1210 from meilisearch/chore/update-tests-for-v1.36.0
chore: update tests for v1.36.0
2 parents c69ffae + 8961c65 commit 59d77d3

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

tests/settings/test_settings.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ def new_settings(new_embedders):
1313
}
1414

1515

16-
DEFAULT_RANKING_RULES = ["words", "typo", "proximity", "attribute", "sort", "exactness"]
16+
DEFAULT_RANKING_RULES = [
17+
"words",
18+
"typo",
19+
"proximity",
20+
"attributeRank",
21+
"sort",
22+
"wordPosition",
23+
"exactness",
24+
]
1725

1826
DEFAULT_TYPO_TOLERANCE = {
1927
"enabled": True,

tests/settings/test_settings_ranking_rules_meilisearch.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
NEW_RANKING_RULES = ["typo", "exactness"]
2-
DEFAULT_RANKING_RULES = ["words", "typo", "proximity", "attribute", "sort", "exactness"]
2+
DEFAULT_RANKING_RULES = [
3+
"words",
4+
"typo",
5+
"proximity",
6+
"attributeRank",
7+
"sort",
8+
"wordPosition",
9+
"exactness",
10+
]
311

412

513
def test_get_ranking_rules_default(empty_index):

0 commit comments

Comments
 (0)