Skip to content

Commit dc05398

Browse files
Merge #1315
1315: Replace IP address by localhost in 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#209) for more information and the complete description about what should be done here check that issue. Co-authored-by: meili-bot <[email protected]>
2 parents 0365824 + e5bcbb2 commit dc05398

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.code-samples.meilisearch.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# the documentation on build
44
# You can read more on https://github.com/meilisearch/documentation/tree/master/.vuepress/code-samples
55
---
6+
getting_started_typo_tolerance: |-
7+
68
get_one_index_1: |-
79
client.index('movies').getRawInfo()
810
list_all_indexes_1: |-
@@ -412,7 +414,7 @@ getting_started_add_documents_md: |-
412414
413415
**Use**
414416
```js
415-
const client = new MeiliSearch({ host: 'http://127.0.0.1:7700' })
417+
const client = new MeiliSearch({ host: 'http://localhost:7700' })
416418
client.index('movie').addDocuments(movies)
417419
.then((res) => console.log(res))
418420
```
@@ -455,7 +457,7 @@ getting_started_update_displayed_attributes: |-
455457
'poster'
456458
])
457459
getting_started_communicating_with_a_protected_instance: |-
458-
const client = new MeiliSearch('http://127.0.0.1:7700', 'apiKey')
460+
const client = new MeiliSearch('http://localhost:7700', 'apiKey')
459461
client.index('movies').search()
460462
getting_started_add_meteorites: |-
461463
const meteorites = require('./meteorites.json')
@@ -626,10 +628,10 @@ tenant_token_guide_generate_sdk_1: |-
626628
expiresAt: expiresAt,
627629
})
628630
tenant_token_guide_search_sdk_1: |-
629-
const frontEndClient = new MeiliSearch({ host: 'http://127.0.0.1:7700', apiKey: token })
631+
const frontEndClient = new MeiliSearch({ host: 'http://localhost:7700', apiKey: token })
630632
frontEndClient.index('patient_medical_records').search('blood test')
631633
landing_getting_started_1: |-
632-
const client = new MeiliSearch('http://127.0.0.1:7700', 'masterKey')
634+
const client = new MeiliSearch('http://localhost:7700', 'masterKey')
633635
634636
await client.index('movies').addDocuments([
635637
{ 'id': 1, 'title': 'Carol' },

0 commit comments

Comments
 (0)