Skip to content

Commit 2a9b6e0

Browse files
meili-bors[bot]meili-botbidoubiwa
authored
Merge #1247
1247: 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#204) for more information and the complete description about what should be done here check that issue. Co-authored-by: meili-bot <[email protected]> Co-authored-by: Charlotte Vermandel <[email protected]> Co-authored-by: cvermand <[email protected]> Co-authored-by: meili-bors[bot] <89034592+meili-bors[bot]@users.noreply.github.com>
2 parents ce4054a + 30dbf3c commit 2a9b6e0

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.code-samples.meilisearch.yaml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -366,16 +366,20 @@ documents_guide_add_movie_1: |-
366366
movie_id: '123sq178',
367367
title: 'Amelie Poulain'
368368
}])
369-
document_guide_create_index_primary_key: |-
370-
client.createIndex('movies', { primaryKey: 'reference_number' })
371-
document_guide_add_document_primary_key: |-
372-
client.index('movies').addDocuments([
369+
primary_field_guide_update_document_primary_key: |-
370+
client.updateIndex('books', {
371+
primaryKey: 'title'
372+
})
373+
primary_field_guide_create_index_primary_key: |-
374+
client.createIndex('books', { primaryKey: 'reference_number' })
375+
primary_field_guide_add_document_primary_key: |-
376+
client.index('books').addDocuments([
373377
{
374378
reference_number: 287947,
375-
title: 'Shazam',
376-
poster: 'https://image.tmdb.org/t/p/w1280/xnopI5Xtky18MPhK40cZAGAOVeV.jpg',
377-
overview: 'A boy is given the ability to become an adult superhero in times of need with a single magic word.',
378-
release_date: '2019-03-23'
379+
title: 'Diary of a Wimpy Kid',
380+
author: 'Jeff Kinney',
381+
genres: ['comedy','humor'],
382+
price: 5.00
379383
}
380384
], { primaryKey: 'reference_number' })
381385
getting_started_add_documents_md: |-
@@ -416,7 +420,7 @@ getting_started_search_md: |-
416420
```
417421
418422
[About this SDK](https://github.com/meilisearch/meilisearch-js/)
419-
getting_started_update_rankingRules: |-
423+
getting_started_update_ranking_rules: |-
420424
client.index('movies').updateRankingRules([
421425
'exactness',
422426
'words',
@@ -427,7 +431,7 @@ getting_started_update_rankingRules: |-
427431
'release_date:asc',
428432
'rank:desc'
429433
])
430-
getting_started_update_searchableAttributes: |-
434+
getting_started_update_searchable_attributes: |-
431435
client.index('movies').updateSearchableAttributes([
432436
'title'
433437
])
@@ -440,7 +444,7 @@ getting_started_synonyms: |-
440444
winnie: ['piglet'],
441445
piglet: ['winnie']
442446
})
443-
getting_started_update_displayedAttributes: |-
447+
getting_started_update_displayed_attributes: |-
444448
client.index('movies').updateDisplayedAttributes([
445449
'title',
446450
'overview',
@@ -458,9 +462,9 @@ getting_started_configure_settings: |-
458462
filterableAttributes: ['mass', '_geo'],
459463
sortableAttributes: ['mass', '_geo']
460464
})
461-
getting_started_geoRadius: |-
465+
getting_started_geo_radius: |-
462466
client.index('meteorites').search('', { filter: '_geoRadius(46.9480, 7.4474, 210000)' })
463-
getting_started_geoPoint: |-
467+
getting_started_geo_point: |-
464468
client.index('meteorites').search('', { sort: ['_geoPoint(48.8583701, 2.2922926):asc'] })
465469
getting_started_sorting: |-
466470
client.index('meteorites').search('', {

0 commit comments

Comments
 (0)