Skip to content

Commit a36ab09

Browse files
meili-bors[bot]meili-botbidoubiwa
authored
Merge #1429
1429: Update code-samples r=bidoubiwa a=meili-bot _This PR is auto-generated._ Update the code-samples.meilisearch.yml according to the [integration-guides issue](meilisearch/integration-guides#216) for more information and the complete description about what should be done here check that issue. :warning: Check the global issue before implementing the code-samples. The issue may have changed since the last time. Co-authored-by: meili-bot <[email protected]> Co-authored-by: cvermand <[email protected]>
2 parents 0f147f8 + b9cb4f9 commit a36ab09

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.code-samples.meilisearch.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@
33
# the documentation on build
44
# You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples
55
---
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+
})
626
get_one_index_1: |-
727
client.index('movies').getRawInfo()
828
list_all_indexes_1: |-
@@ -518,6 +538,8 @@ getting_started_faceting: |-
518538
client.index('movies').updateFaceting({ maxValuesPerFacet: 2 })
519539
getting_started_filtering: |-
520540
client.index('meteorites').search('', { filter: 'mass < 200' })
541+
getting_started_pagination: |-
542+
client.index("movies").updatePagination({ maxTotalHits: 500 })
521543
get_filterable_attributes_1: |-
522544
client.index('movies').getFilterableAttributes()
523545
update_filterable_attributes_1: |-

0 commit comments

Comments
 (0)