File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,15 @@ def test_custom_search_params_with_many_params(index_with_documents):
217
217
218
218
def test_custom_search_params_with_sort_string (index_with_documents ):
219
219
index = index_with_documents ()
220
+ response = index .update_ranking_rules ([
221
+ 'words' ,
222
+ 'typo' ,
223
+ 'sort' ,
224
+ 'proximity' ,
225
+ 'attribute' ,
226
+ 'exactness'
227
+ ])
228
+ index .wait_for_pending_update (response ['updateId' ])
220
229
update = index .update_sortable_attributes (['title' ])
221
230
index .wait_for_pending_update (update ['updateId' ])
222
231
response = index .search (
@@ -234,6 +243,15 @@ def test_custom_search_params_with_sort_string(index_with_documents):
234
243
235
244
def test_custom_search_params_with_sort_int (index_with_documents ):
236
245
index = index_with_documents ()
246
+ response = index .update_ranking_rules ([
247
+ 'words' ,
248
+ 'typo' ,
249
+ 'sort' ,
250
+ 'proximity' ,
251
+ 'attribute' ,
252
+ 'exactness'
253
+ ])
254
+ index .wait_for_pending_update (response ['updateId' ])
237
255
update = index .update_sortable_attributes (['release_date' ])
238
256
index .wait_for_pending_update (update ['updateId' ])
239
257
response = index .search (
@@ -251,6 +269,15 @@ def test_custom_search_params_with_sort_int(index_with_documents):
251
269
252
270
def test_custom_search_params_with_multiple_sort (index_with_documents ):
253
271
index = index_with_documents ()
272
+ response = index .update_ranking_rules ([
273
+ 'words' ,
274
+ 'typo' ,
275
+ 'sort' ,
276
+ 'proximity' ,
277
+ 'attribute' ,
278
+ 'exactness'
279
+ ])
280
+ index .wait_for_pending_update (response ['updateId' ])
254
281
update = index .update_sortable_attributes (['title' , 'release_date' ])
255
282
index .wait_for_pending_update (update ['updateId' ])
256
283
response = index .search (
You can’t perform that action at this time.
0 commit comments