|
4 | 4 | # You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples |
5 | 5 | --- |
6 | 6 | async_guide_filter_by_date_1: |- |
7 | | - with filter: { afterEnqueuedAt=2020-10-11T11:49:53.000Z } |
| 7 | + client.get_tasks(after_enqueued_at: DateTime.new(2020, 10, 11, 11, 49, 53)) |
8 | 8 |
|
9 | 9 | async_guide_multiple_filters_1: |- |
10 | | - with filter: { indexUids: movies, types: ["documentAdditionOrUpdate","documentDeletion"], statuses: ["processing"] } |
| 10 | + client.get_tasks(index_uids: ['movies'], types: ['documentAdditionOrUpdate', 'documentDeletion'], statuses: ['processing']) |
11 | 11 |
|
12 | 12 | async_guide_filter_by_ids_1: |- |
13 | | - with filter: { uids: [5, 10, 13] } |
| 13 | + client.get_tasks(uids: [5, 10, 13]) |
14 | 14 |
|
15 | 15 | async_guide_filter_by_statuses_1: |- |
16 | | - with filter: { statuses: ["failed", "canceled"] } |
| 16 | + client.get_tasks(statuses: ['failed', 'canceled']) |
17 | 17 |
|
18 | 18 | async_guide_filter_by_types_1: |- |
19 | | - with filter: { types: ["dumpCreation", "indexSwap"] } |
| 19 | + client.get_tasks(types: ['dumpCreation', 'indexSwap']) |
20 | 20 |
|
21 | 21 | async_guide_filter_by_index_uids_1: |- |
22 | | - with filter: { indexUids: ["movies"] } |
| 22 | + client.get_tasks(index_uids: ['movies']) |
23 | 23 |
|
24 | 24 | delete_tasks_1: |- |
25 | | - with filter: { uids: [1, 2] } |
| 25 | + client.delete_tasks(uids: [1, 2]) |
26 | 26 |
|
27 | 27 | cancel_tasks_1: |- |
28 | | - with filter: { uids: [1,2] } |
| 28 | + client.cancel_tasks(uids: [1, 2]) |
29 | 29 |
|
30 | 30 | async_guide_canceled_by: |- |
31 | | - with filter: { canceledBy: [9] } |
| 31 | + client.get_tasks(canceled_by: [9]) |
32 | 32 |
|
33 | 33 | swap_indexes_1: |- |
34 | | - with data: { indexes: [ "indexA", "indexB"], indexes: [ "indexX", "indexY" ] } |
| 34 | + client.swap_indexes([['indexA', 'indexB'], ['indexX', 'indexY']]); |
35 | 35 |
|
36 | 36 | search_parameter_guide_hitsperpage_1: |- |
37 | | - with queryparams: { "q": "", "hitsPerPage": 15 } |
| 37 | + client.index('movies').search('', hits_per_page: 15) |
38 | 38 |
|
39 | 39 | search_parameter_guide_page_1: |- |
40 | | - with queryparams: { "q": "", "page": 2 } |
| 40 | + client.index('movies').search('', page: 2) |
41 | 41 |
|
42 | 42 | getting_started_typo_tolerance: |- |
43 | 43 | client.index('movies').update_typo_tolerance({ min_word_size_for_typos: { one_typo: 4 } }) |
44 | 44 |
|
45 | | ->>>>>>>>>>> REMOVE_ME get_all_tasks_filtering_1: |- |
46 | | - client.index('movies').tasks |
47 | | ->>>>>>>>>>> REMOVE_ME get_all_tasks_filtering_2: |- |
48 | | - client.tasks(status: ['succeeded', 'failed'], type: ['documentAdditionOrUpdate']) |
49 | 45 | get_all_tasks_paginating_1: |- |
50 | 46 | client.tasks(limit: 2, from: 10) |
51 | 47 | get_all_tasks_paginating_2: |- |
|
0 commit comments