Skip to content

Commit 8656295

Browse files
committed
Add landing_getting_started_1
1 parent a27a936 commit 8656295

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
@@ -506,3 +506,14 @@ getting_started_sorting: |-
506506
})
507507
getting_started_filtering: |-
508508
client.index('meteorites').search('', { filter: 'mass < 200' })
509+
landing_getting_started_1: |-
510+
client = MeiliSearch::Client.new('http://127.0.0.1:7700', 'masterKey')
511+
512+
client.index('movies').add_documents([
513+
{ id: 1, title: 'Carol' },
514+
{ id: 2, title: 'Wonder Woman' },
515+
{ id: 3, title: 'Life of Pi' },
516+
{ id: 4, title: 'Mad Max: Fury Road' },
517+
{ id: 5, title: 'Moana' },
518+
{ id: 6, title: 'Philadelphia' }
519+
])

0 commit comments

Comments
 (0)