File tree 1 file changed +12
-10
lines changed 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -633,21 +633,23 @@ get_all_tasks_paginating_2: |-
633
633
'from': 8
634
634
})
635
635
get_pagination_settings_1 : |-
636
+ client.index('books').get_pagination_settings()
636
637
update_pagination_settings_1 : |-
637
- client.index('books').update_settings({
638
- 'pagination': {
639
- 'maxTotalHits': 100
640
- }
641
- })
638
+ client.index('books').update_pagination_settings({'maxTotalHits': 100})
642
639
reset_pagination_settings_1 : |-
640
+ client.index('books').reset_pagination_settings()
643
641
get_faceting_settings_1 : |-
642
+ client.index('books').get_faceting_settings()
644
643
update_faceting_settings_1 : |-
645
- client.index('books').update_settings({
646
- 'faceting': {
647
- 'maxValuesPerFacet': 2
648
- }
649
- })
644
+ params = {
645
+ 'maxValuesPerFacet': 2,
646
+ 'sortFacetValuesBy': {
647
+ '*': 'count'
648
+ }
649
+ }
650
+ client.index('movies').update_faceting_settings(params)
650
651
reset_faceting_settings_1 : |-
652
+ client.index('books').reset_faceting_settings()
651
653
synonyms_guide_1 : |-
652
654
client.index('movies').update_synonyms({
653
655
'great': ['fantastic'],
You can’t perform that action at this time.
0 commit comments