Skip to content

Commit 353b297

Browse files
committed
Replace localhost:7700 with MEILISEARCH_URL
1 parent 59d77d3 commit 353b297

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.code-samples.meilisearch.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ get_network_1: |-
99
update_network_1: |-
1010
client.add_or_update_networks({
1111
"remotes": {
12-
"http://localhost:7700": {
12+
"MEILISEARCH_URL": {
1313
"searchApiKey": "masterKey"
1414
}
1515
},
@@ -24,7 +24,7 @@ create_an_index_1: |-
2424
update_an_index_1: |-
2525
client.index('movies').update(primary_key='id')
2626
compact_index_1: |-
27-
client.index('movies').compact()
27+
client.index('movies').compact()
2828
delete_an_index_1: |-
2929
client.delete_index('movies')
3030
// OR
@@ -406,7 +406,7 @@ getting_started_add_documents: |-
406406
import meilisearch
407407
import json
408408
409-
client = meilisearch.Client('http://localhost:7700', 'aSampleMasterKey')
409+
client = meilisearch.Client('MEILISEARCH_URL', 'aSampleMasterKey')
410410
411411
json_file = open('movies.json', encoding='utf-8')
412412
movies = json.load(json_file)
@@ -503,7 +503,7 @@ primary_field_guide_add_document_primary_key: |-
503503
'price': 5.00
504504
}], 'reference_number')
505505
authorization_header_1: |-
506-
client = Client('http://localhost:7700', 'masterKey')
506+
client = Client('MEILISEARCH_URL', 'masterKey')
507507
client.get_keys()
508508
tenant_token_guide_generate_sdk_1: |-
509509
uid = '85c3c2f9-bdd6-41f1-abd8-11fcf80e0f76';
@@ -516,7 +516,7 @@ tenant_token_guide_generate_sdk_1: |-
516516
}
517517
token = client.generate_tenant_token(api_key_uid=uid, search_rules=search_rules, api_key=api_key, expires_at=expires_at)
518518
tenant_token_guide_search_sdk_1: |-
519-
front_end_client = Client('http://localhost:7700', token)
519+
front_end_client = Client('MEILISEARCH_URL', token)
520520
front_end_client.index('patient_medical_records').search('blood test')
521521
get_all_tasks_paginating_1: |-
522522
client.get_tasks({

0 commit comments

Comments
 (0)