@@ -417,47 +417,29 @@ primary_field_guide_add_document_primary_key: |-
417417 price: 5.00
418418 }
419419 ], { primaryKey: 'reference_number' })
420- getting_started_add_documents_md : |-
421- ```bash
422- npm install meilisearch
423- ```
420+ getting_started_add_documents : |-
421+ // With npm:
422+ // npm install meilisearch
424423
425- Or, if you are using `yarn`
426- ```bash
427- yarn add meilisearch
428- ```
424+ // Or with yarn:
425+ // yarn add meilisearch
429426
430- **Import**
431-
432- `require` syntax:
433- ```js
427+ // In your .js file:
428+ // With the `require` syntax:
434429 const { MeiliSearch } = require('meilisearch')
435430 const movies = require('./movies.json')
436- ```
437-
438- `import` syntax:
439- ```js
431+ // With the `import` syntax:
440432 import { MeiliSearch } from 'meilisearch'
441433 import movies from './movies.json'
442- ```
443434
444- **Use**
445- ```js
446435 const client = new MeiliSearch({
447436 host: 'http://localhost:7700',
448437 apiKey: 'aSampleMasterKey'
449438 })
450439 client.index('movies').addDocuments(movies)
451440 .then((res) => console.log(res))
452- ```
453-
454- [About this SDK](https://github.com/meilisearch/meilisearch-js/)
455- getting_started_search_md : |-
456- ```js
441+ getting_started_search : |-
457442 client.index('movies').search('botman').then((res) => console.log(res))
458- ```
459-
460- [About this SDK](https://github.com/meilisearch/meilisearch-js/)
461443getting_started_update_ranking_rules : |-
462444 client.index('movies').updateRankingRules([
463445 'exactness',
0 commit comments