Skip to content

Commit c71d375

Browse files
committed
Update tests and code samples
1 parent fb9bde7 commit c71d375

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.code-samples.meilisearch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ update_settings_1: |-
5656
rankingRules: [
5757
'words',
5858
'typo',
59-
'sort',
6059
'proximity',
6160
'attribute',
61+
'sort',
6262
'exactness',
6363
'desc(release_date)',
6464
'rank:desc'
@@ -113,9 +113,9 @@ update_ranking_rules_1: |-
113113
client.index('movies').update_ranking_rules([
114114
'words',
115115
'typo',
116-
'sort',
117116
'proximity',
118117
'attribute',
118+
'sort',
119119
'exactness',
120120
'release_date:asc',
121121
'rank:desc'
@@ -250,9 +250,9 @@ settings_guide_ranking_rules_1: |-
250250
rankingRules: [
251251
'words',
252252
'typo',
253-
'sort',
254253
'proximity',
255254
'attribute',
255+
'sort',
256256
'exactness',
257257
'release_date:asc',
258258
'rank:desc'

spec/meilisearch/index/search/sort_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@
7373
@index.wait_for_pending_update(response['updateId'])
7474
response = @index.update_sortable_attributes(['year', 'author'])
7575
@index.wait_for_pending_update(response['updateId'])
76+
response = @index.update_ranking_rules([
77+
'sort',
78+
'words',
79+
'typo',
80+
'proximity',
81+
'attribute',
82+
'exactness'
83+
])
84+
@index.wait_for_pending_update(response['updateId'])
7685
end
7786

7887
after(:all) do

spec/meilisearch/index/settings_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
[
1111
'words',
1212
'typo',
13-
'sort',
1413
'proximity',
1514
'attribute',
15+
'sort',
1616
'exactness'
1717
]
1818
end

0 commit comments

Comments
 (0)