5
5
---
6
6
synonyms_guide_1 : |-
7
7
client.index('movies').updateSynonyms({
8
- " great" : [" fantastic" ],
9
- " fantastic" : [" great" ]
8
+ ' great' : [' fantastic' ],
9
+ ' fantastic' : [' great' ]
10
10
})
11
11
date_guide_index_1 : |-
12
12
const games = require('./games.json')
@@ -35,8 +35,8 @@ delete_an_index_1: |-
35
35
client.deleteIndex('movies')
36
36
swap_indexes_1 : |-
37
37
client.swapIndexes([
38
- { " indexes" : [" indexA", " indexB" ] },
39
- { " indexes" : [" indexX", " indexY" ] }
38
+ { ' indexes' : [' indexA', ' indexB' ] },
39
+ { ' indexes' : [' indexX', ' indexY' ] }
40
40
])
41
41
get_one_document_1 : |-
42
42
client
@@ -106,18 +106,18 @@ async_guide_filter_by_date_1: |-
106
106
client.getTasks({ afterEnqueuedAt: '2020-10-11T11:49:53.000Z' })
107
107
async_guide_multiple_filters_1 : |-
108
108
client.getTasks({
109
- indexUids: [" movies" ],
110
- types: [" documentAdditionOrUpdate"," documentDeletion" ],
111
- statuses: [" processing" ]
109
+ indexUids: [' movies' ],
110
+ types: [' documentAdditionOrUpdate',' documentDeletion' ],
111
+ statuses: [' processing' ]
112
112
})
113
113
async_guide_filter_by_ids_1 : |-
114
114
client.getTasks({ uids: [5, 10, 13] })
115
115
async_guide_filter_by_statuses_1 : |-
116
- client.getTasks({ statuses: [" failed", " canceled" ] })
116
+ client.getTasks({ statuses: [' failed', ' canceled' ] })
117
117
async_guide_filter_by_types_1 : |-
118
- client.getTasks({ types: [" dumpCreation", " indexSwap" ] })
118
+ client.getTasks({ types: [' dumpCreation', ' indexSwap' ] })
119
119
async_guide_filter_by_index_uids_1 : |-
120
- client.getTasks({ indexUids: [" movies" ] })
120
+ client.getTasks({ indexUids: [' movies' ] })
121
121
get_all_tasks_paginating_1 : |-
122
122
client.getTasks({ limit: 2, from: 10 })
123
123
get_all_tasks_paginating_2 : |-
@@ -400,11 +400,6 @@ typo_tolerance_guide_4: |-
400
400
add_movies_json_1 : |-
401
401
const movies = require('./movies.json')
402
402
client.index('movies').addDocuments(movies).then((res) => console.log(res))
403
- documents_guide_add_movie_1 : |-
404
- client.index('movies').addDocuments([{
405
- movie_id: '123sq178',
406
- title: 'Amelie Poulain'
407
- }])
408
403
primary_field_guide_update_document_primary_key : |-
409
404
client.updateIndex('books', {
410
405
primaryKey: 'title'
@@ -492,9 +487,6 @@ getting_started_update_displayed_attributes: |-
492
487
'overview',
493
488
'poster'
494
489
])
495
- getting_started_communicating_with_a_protected_instance : |-
496
- const client = new MeiliSearch('http://localhost:7700', 'apiKey')
497
- client.index('movies').search()
498
490
getting_started_add_meteorites : |-
499
491
const meteorites = require('./meteorites.json')
500
492
@@ -517,7 +509,7 @@ getting_started_faceting: |-
517
509
client.index('movies').updateFaceting({
518
510
maxValuesPerFacet: 2,
519
511
sortFacetValuesBy: {
520
- '*': " count"
512
+ '*': ' count'
521
513
}
522
514
})
523
515
getting_started_typo_tolerance : |-
@@ -529,7 +521,7 @@ getting_started_typo_tolerance: |-
529
521
getting_started_filtering : |-
530
522
client.index('meteorites').search('', { filter: 'mass < 200' })
531
523
getting_started_pagination : |-
532
- client.index(" movies" ).updatePagination({ maxTotalHits: 500 })
524
+ client.index(' movies' ).updatePagination({ maxTotalHits: 500 })
533
525
get_filterable_attributes_1 : |-
534
526
client.index('movies').getFilterableAttributes()
535
527
update_filterable_attributes_1 : |-
@@ -546,11 +538,6 @@ filtering_update_settings_1: |-
546
538
'director',
547
539
'genres'
548
540
])
549
- faceted_search_facets_1 : |-
550
- client.index('movies')
551
- .search('Batman', {
552
- facets: ['genres']
553
- })
554
541
faceted_search_walkthrough_filter_1 : |-
555
542
client.index('movies')
556
543
.search('thriller', {
@@ -560,26 +547,6 @@ faceted_search_update_settings_1: |-
560
547
client.index('movie_ratings').updateFilterableAttributes(['genres', 'rating', 'language'])
561
548
faceted_search_1 : |-
562
549
client.index('books').search('classic', { facets: ['genres', 'rating', 'language'] })
563
- faceted_search_2 : |-
564
- client.multiSearch({
565
- queries: [
566
- {
567
- indexUid: 'books',
568
- facets: ['language', 'genres', 'author', 'format'],
569
- filter: "(language = English AND language = French) OR genres = Fiction"
570
- },
571
- {
572
- indexUid: 'books',
573
- facets: ['language'],
574
- filter: 'genres = Fiction'
575
- },
576
- {
577
- indexUid: 'books',
578
- facets: ['genres'],
579
- filter: 'language = English OR language = French'
580
- }
581
- ]
582
- })
583
550
post_dump_1 : |-
584
551
client.createDump()
585
552
phrase_search_1 : |-
@@ -609,7 +576,7 @@ sorting_guide_sort_parameter_2: |-
609
576
})
610
577
sorting_guide_sort_nested_1 : |-
611
578
client.index('books').search('science fiction', {
612
- " sort" : [" rating.users:asc" ],
579
+ ' sort' : [' rating.users:asc' ],
613
580
})
614
581
get_sortable_attributes_1 : |-
615
582
client.index('books').getSortableAttributes()
0 commit comments