Skip to content

Commit d9fd709

Browse files
bors[bot]meili-botalallema
authored
Merge #466
466: Update code-samples r=alallema 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: alallema <[email protected]>
2 parents 76367ab + 4683a65 commit d9fd709

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.code-samples.meilisearch.yaml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ getting_started_add_meteorites: |-
421421
json_file = open('meteorites.json')
422422
meteorites = json.load(json_file)
423423
client.index('meteorites').add_documents(meteorites)
424-
getting_started_update_rankingRules: |-
424+
getting_started_update_ranking_rules: |-
425425
client.index('movies').update_ranking_rules([
426426
'exactness',
427427
'words',
@@ -432,13 +432,13 @@ getting_started_update_rankingRules: |-
432432
'release_date:asc',
433433
'rank:desc'
434434
])
435-
getting_started_update_displayedAttributes: |-
435+
getting_started_update_displayed_attributes: |-
436436
client.index('movies').update_displayed_attributes([
437437
'title',
438438
'overview',
439439
'poster'
440440
])
441-
getting_started_update_searchableAttributes: |-
441+
getting_started_update_searchable_attributes: |-
442442
client.index('movies').update_searchable_attributes([
443443
'title'
444444
])
@@ -453,11 +453,11 @@ getting_started_filtering: |-
453453
client.index('meteorites').search('', {
454454
'filter': 'mass < 200'
455455
})
456-
getting_started_geoRadius: |-
456+
getting_started_geo_radius: |-
457457
client.index('meteorites').search('', {
458458
'filter': '_geoRadius(46.9480, 7.4474, 210000)'
459459
})
460-
getting_started_geoPoint: |-
460+
getting_started_geo_point: |-
461461
client.index('meteorites').search('', {
462462
'sort': ['_geoPoint(48.8583701,2.2922926):asc']
463463
})
@@ -553,15 +553,17 @@ geosearch_guide_sort_usage_2: |-
553553
client.index('restaurants').search('', {
554554
'sort': ['_geoPoint(48.8561446,2.2978204):asc', 'rating:desc']
555555
})
556-
document_guide_create_index_primary_key: |-
557-
client.create_index('movies', {'primaryKey': 'reference_number'})
558-
document_guide_add_document_primary_key: |-
559-
client.index('movies').add_documents([{
556+
primary_field_guide_update_document_primary_key: |-
557+
client.index('books').update(primary_key='title')
558+
primary_field_guide_create_index_primary_key: |-
559+
client.create_index('books', {'primaryKey': 'reference_number'})
560+
primary_field_guide_add_document_primary_key: |-
561+
client.index('books').add_documents([{
560562
'reference_number': 287947,
561-
'title': 'Shazam',
562-
'poster': 'https://image.tmdb.org/t/p/w1280/xnopI5Xtky18MPhK40cZAGAOVeV.jpg',
563-
'overview': 'A boy is given the ability to become an adult superhero in times of need with a single magic word.',
564-
'release_date': '2019-03-23'
563+
'title': 'Diary of a Wimpy Kid',
564+
'author': 'Jeff Kinney',
565+
'genres': ['comedy', 'humor'],
566+
'price': 5.00
565567
}], 'reference_number')
566568
security_guide_search_key_1: |-
567569
client = Client('http://127.0.0.1:7700', 'apiKey')

0 commit comments

Comments
 (0)