File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 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
+ getting_started_faceting : |-
7
+ client.index("movies").updateFaceting({ maxValuesPerFacet: 2 })
8
+ getting_started_pagination : |-
9
+ client.index("movies").updatePagination({ maxTotalHits: 500 })
10
+ synonyms_guide_1 : |-
11
+ client.index('movies').updateSynonyms({
12
+ "great": ["fantastic"],
13
+ "fantastic": ["great"]
14
+ })
15
+ date_guide_index_1 : |-
16
+ const games = require('./games.json')
17
+ client.index('games').addDocuments(games).then((res) => console.log(res))
18
+ date_guide_filterable_attributes_1 : |-
19
+ client.index('games').updateFilterableAttributes({
20
+ filterableAttributes: ['release_timestamp']
21
+ })
22
+ date_guide_filter_1 : |-
23
+ client.index('games').search('', {
24
+ filter: 'release_timestamp >= 1514761200 AND release_timestamp < 1672527600'
25
+ })
26
+ date_guide_sortable_attributes_1 : |-
27
+ client.index('games').updateSortableAttributes({
28
+ sortableAttributes: ['release_timestamp']
29
+ })
30
+ date_guide_sort_1 : |-
31
+ client.index('games').search('', {
32
+ sort: ['release_timestamp:desc'],
33
+ })
34
+
6
35
get_one_index_1 : |-
7
36
client.get_index('movies')
8
37
list_all_indexes_1 : |-
You can’t perform that action at this time.
0 commit comments