|
3 | 3 | # the documentation on build |
4 | 4 | # You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples |
5 | 5 | --- |
6 | | -get_pagination_settings_1: |- |
7 | | -update_pagination_settings_1: |- |
8 | | -reset_pagination_settings_1: |- |
9 | | -get_faceting_settings_1: |- |
10 | | -update_faceting_settings_1: |- |
11 | | -reset_faceting_settings_1: |- |
12 | | -settings_guide_faceting_1: |- |
13 | | -settings_guide_pagination_1: |- |
14 | | -
|
15 | 6 | get_one_index_1: |- |
16 | 7 | client.index('movies').getRawInfo() |
17 | 8 | list_all_indexes_1: |- |
@@ -82,7 +73,7 @@ delete_a_key_1: |- |
82 | 73 | client.deleteKey('6062abda-a5aa-4414-ac91-ecd7944c0f8d') |
83 | 74 | get_settings_1: |- |
84 | 75 | client.index('movies').getSettings() |
85 | | -PLEASE_UPDATE_ME>>>>>>>>>>>>>update_settings_1: |- |
| 76 | +update_settings_1: |- |
86 | 77 | client.index('movies').updateSettings({ |
87 | 78 | rankingRules: [ |
88 | 79 | 'words', |
@@ -127,6 +118,12 @@ PLEASE_UPDATE_ME>>>>>>>>>>>>>update_settings_1: |- |
127 | 118 | 'disableOnAttributes': [ |
128 | 119 | 'title' |
129 | 120 | ] |
| 121 | + }, |
| 122 | + pagination: { |
| 123 | + maxTotalHits: 5000 |
| 124 | + }, |
| 125 | + faceting: { |
| 126 | + maxValuesPerFacet: 200 |
130 | 127 | } |
131 | 128 | }) |
132 | 129 | reset_settings_1: |- |
@@ -546,6 +543,18 @@ update_sortable_attributes_1: |- |
546 | 543 | ]) |
547 | 544 | reset_sortable_attributes_1: |- |
548 | 545 | client.index('books').resetSortableAttributes() |
| 546 | +get_pagination_settings_1: |- |
| 547 | +update_pagination_settings_1: |- |
| 548 | + client.index('books').updateSettings({ pagination: { maxTotalHits: 100 }}) |
| 549 | +reset_pagination_settings_1: |- |
| 550 | +get_faceting_settings_1: |- |
| 551 | +update_faceting_settings_1: |- |
| 552 | + client.index('books').updateSettings({ faceting: { maxValuesPerFacet: 2 }}) |
| 553 | +reset_faceting_settings_1: |- |
| 554 | +settings_guide_faceting_1: |- |
| 555 | + client.index('books').updateSettings({ faceting: { maxValuesPerFacet: 5 }}) |
| 556 | +settings_guide_pagination_1: |- |
| 557 | + client.index('books').updateSettings({ pagination: { maxTotalHits: 50 }}) |
549 | 558 | search_parameter_guide_sort_1: |- |
550 | 559 | client.index('books').search('science fiction', { |
551 | 560 | sort: ['price:asc'], |
|
0 commit comments