33# the documentation on build
44# You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples
55---
6- async_guide_filter_by_date_1 : |-
7- with filter: { afterEnqueuedAt: 2020-10-11T11:49:53.000Z }
8-
9- async_guide_multiple_filters_1 : |-
10- with filter: { indexUids: movies, types: ["documentAdditionOrUpdate","documentDeletion"], statuses: ["processing"] }
11-
12- async_guide_filter_by_id_1 : |-
13- with filter: { uids: [5, 10, 13] }
14-
15- async_guide_filter_by_status_1 : |-
16- with filter: { status: ["failed", "canceled"] }
17-
18- async_guide_filter_by_type_1 : |-
19- with filter: { types: ["dumpCreation", "indexSwap"] }
20-
21- async_guide_filter_by_index_uid_1 : |-
22- with filter: { indexUids: ["movies"] }
23-
24- delete_task_1 : |-
25- with filter: { uids: [1, 2] }
26-
27- cancel_task_1 : |-
28- with filter: { uids: [1,2] }
29-
30- async_guide_canceled_by : |-
31- with filter: { canceledBy: [9] }
32-
33- swap_indexes_1 : |-
34- with data: { "indexes":[ "indexA", "indexB" ], "indexes":[ "indexX", "indexY" ] }
35-
36- search_parameter_guide_hitsperpage_1 : |-
37- with queryparams: { "q": "", "hitsPerPage": 15 }
38-
39- search_parameter_guide_page_1 : |-
40- with queryparams: { "q": "", "page": 2 }
41-
42- getting_started_typo_tolerance : |-
43-
446get_one_index_1 : |-
457 client.index('movies').getRawInfo()
468list_all_indexes_1 : |-
@@ -51,6 +13,11 @@ update_an_index_1: |-
5113 client.updateIndex('movies', { primaryKey: 'id' })
5214delete_an_index_1 : |-
5315 client.deleteIndex('movies')
16+ swap_indexes_1 : |-
17+ client.swapIndexes([
18+ { "indexes": ["indexA", "indexB"] },
19+ { "indexes": ["indexX", "indexY"] }
20+ ])
5421get_one_document_1 : |-
5522 client
5623 .index('movies')
@@ -85,14 +52,32 @@ get_all_tasks_1: |-
8552 client.getTasks()
8653get_task_1 : |-
8754 client.getTask(1)
88- >>>>>>>>>>> REMOVE_ME get_all_tasks_filtering_1: |-
89- client.getTasks({ indexUid : ['movies'] })
90- >>>>>>>>>>> REMOVE_ME get_all_tasks_filtering_2: |-
91- client.getTasks({ status : ['succeeded', 'failed'], type: ['documentAdditionOrUpdate'] })
55+ async_guide_filter_by_date_1 : |-
56+ client.getTasks({ afterEnqueuedAt: '2020-10-11T11:49:53.000Z' })
57+ async_guide_multiple_filters_1 : |-
58+ client.getTasks({
59+ indexUids: ["movies"],
60+ types: ["documentAdditionOrUpdate","documentDeletion"],
61+ statuses: ["processing"]
62+ })
63+ async_guide_filter_by_ids_1 : |-
64+ client.getTasks({ uids: [5, 10, 13] })
65+ async_guide_filter_by_statuses_1 : |-
66+ client.getTasks({ statuses: ["failed", "canceled"] })
67+ async_guide_filter_by_types_1 : |-
68+ client.getTasks({ types: ["dumpCreation", "indexSwap"] })
69+ async_guide_filter_by_index_uids_1 : |-
70+ client.getTasks({ indexUids: ["movies"] })
9271get_all_tasks_paginating_1 : |-
9372 client.getTasks({ limit: 2, from: 10 })
9473get_all_tasks_paginating_2 : |-
9574 client.getTasks({ limit: 2, from: 8 })
75+ async_guide_canceled_by : |-
76+ client.getTasks({ canceledBy: [9] })
77+ delete_tasks_1 : |-
78+ client.deleteTasks({ uids: [1, 2] })
79+ cancel_tasks_1 : |-
80+ client.cancelTasks({ uids: [1, 2] })
9681get_one_key_1 : |-
9782 client.getKey('6062abda-a5aa-4414-ac91-ecd7944c0f8d')
9883get_all_keys_1 : |-
@@ -325,6 +310,14 @@ search_parameter_guide_matching_strategy_2: |-
325310 client.index('movies').search('big fat liar', {
326311 matchingStrategy: 'all'
327312 })
313+ search_parameter_guide_hitsperpage_1 : |-
314+ client.index('movies').search('', {
315+ "hitsPerPage": 15
316+ })
317+ search_parameter_guide_page_1 : |-
318+ client.index('movies').search('', {
319+ "page": 2
320+ })
328321settings_guide_synonyms_1 : |-
329322 client.index('tops').updateSettings({
330323 synonyms: {
0 commit comments