Skip to content

Commit 73f9905

Browse files
committed
Add landing_getting_started_1 sample
1 parent 85cd780 commit 73f9905

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.code-samples.meilisearch.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,17 @@ add_movies_json_1: |-
315315
json_file = open('movies.json')
316316
movies = json.load(json_file)
317317
client.index('movies').add_documents(movies)
318+
landing_getting_started_1: |-
319+
client = meilisearch.Client('http://127.0.0.1:7700')
320+
321+
client.index('movies').add_documents([
322+
{ "id": 1, "title": 'Carol' },
323+
{ "id": 2, "title": 'Wonder Woman' },
324+
{ "id": 3, "title": 'Life of Pi' },
325+
{ "id": 4, "title": 'Mad Max: Fury Road' },
326+
{ "id": 5, "title": 'Moana' },
327+
{ "id": 6, "title": 'Philadelphia'}
328+
])
318329
documents_guide_add_movie_1: |-
319330
client.index('movies').add_documents([{
320331
'movie_id': '123sq178',

0 commit comments

Comments
 (0)