|
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 | +synonyms_guide_1: |- |
| 7 | + client.index('movies').updateSynonyms({ |
| 8 | + "great": ["fantastic"], |
| 9 | + "fantastic": ["great"] |
| 10 | + }) |
| 11 | +date_guide_index_1: |- |
| 12 | + const games = require('./games.json') |
| 13 | + client.index('games').addDocuments(games).then((res) => console.log(res)) |
| 14 | +date_guide_filterable_attributes_1: |- |
| 15 | + client.index('games').updateFilterableAttributes(['release_timestamp']) |
| 16 | +date_guide_filter_1: |- |
| 17 | + client.index('games').search('', { |
| 18 | + filter: 'release_timestamp >= 1514761200 AND release_timestamp < 1672527600' |
| 19 | + }) |
| 20 | +date_guide_sortable_attributes_1: |- |
| 21 | + client.index('games').updateSortableAttributes(['release_timestamp']) |
| 22 | +date_guide_sort_1: |- |
| 23 | + client.index('games').search('', { |
| 24 | + sort: ['release_timestamp:desc'], |
| 25 | + }) |
6 | 26 | get_one_index_1: |- |
7 | 27 | client.index('movies').getRawInfo() |
8 | 28 | list_all_indexes_1: |- |
@@ -518,6 +538,8 @@ getting_started_faceting: |- |
518 | 538 | client.index('movies').updateFaceting({ maxValuesPerFacet: 2 }) |
519 | 539 | getting_started_filtering: |- |
520 | 540 | client.index('meteorites').search('', { filter: 'mass < 200' }) |
| 541 | +getting_started_pagination: |- |
| 542 | + client.index("movies").updatePagination({ maxTotalHits: 500 }) |
521 | 543 | get_filterable_attributes_1: |- |
522 | 544 | client.index('movies').getFilterableAttributes() |
523 | 545 | update_filterable_attributes_1: |- |
|
0 commit comments