Skip to content

Commit dd778a4

Browse files
bors[bot]meili-botalallema
authored
Merge #308
308: Replace IP address by localhost in code samples r=alallema 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 <74670311+meili-bot@users.noreply.github.com> Co-authored-by: alallema <amelie@meilisearch.com>
2 parents 0106760 + b6c24f4 commit dd778a4

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.code-samples.meilisearch.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ primary_field_guide_add_document_primary_key: |-
354354
},
355355
"reference_number");
356356
authorization_header_1: |-
357-
MeilisearchClient client = new MeilisearchClient("http://127.0.0.1:7700", "masterKey");
357+
MeilisearchClient client = new MeilisearchClient("http://localhost:7700", "masterKey");
358358
var keys = await client.GetKeysAsync();
359359
get_one_key_1: |-
360360
Key key = await client.GetKeyAsync("d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4");
@@ -378,13 +378,13 @@ update_a_key_1: |-
378378
delete_a_key_1: |-
379379
client.DeleteKeyAsync("6062abda-a5aa-4414-ac91-ecd7944c0f8d")
380380
security_guide_search_key_1: |-
381-
MeilisearchClient client = new MeilisearchClient("http://127.0.0.1:7700", "apiKey");
381+
MeilisearchClient client = new MeilisearchClient("http://localhost:7700", "apiKey");
382382
SearchResult<Patient> searchResult = await client.Index("patient_medical_records").SearchAsync<Patient>();
383383
security_guide_update_key_1: |-
384-
MeilisearchClient client = new MeilisearchClient("http://127.0.0.1:7700", "masterKey");
384+
MeilisearchClient client = new MeilisearchClient("http://localhost:7700", "masterKey");
385385
await client.UpdateKeyAsync("74c9c733-3368-4738-bbe5-1d18a5fecb37", description: "Default Search API Key");
386386
security_guide_create_key_1: |-
387-
MeilisearchClient client = new MeilisearchClient("http://127.0.0.1:7700", "masterKey");
387+
MeilisearchClient client = new MeilisearchClient("http://localhost:7700", "masterKey");
388388
Key keyOptions = new Key
389389
{
390390
Description = "Search patient records key",
@@ -394,11 +394,11 @@ security_guide_create_key_1: |-
394394
};
395395
Key createdKey = await this.client.CreateKeyAsync(keyOptions);
396396
security_guide_list_keys_1: |-
397-
MeilisearchClient client = new MeilisearchClient("http://127.0.0.1:7700", "masterKey");
397+
MeilisearchClient client = new MeilisearchClient("http://localhost:7700", "masterKey");
398398
ResourceResults<Key> keyResult = await client.GetKeysAsync();
399399
var keys = keyResult.Result;
400400
security_guide_delete_key_1: |-
401-
MeilisearchClient client = new MeilisearchClient("http://127.0.0.1:7700", "masterKey");
401+
MeilisearchClient client = new MeilisearchClient("http://localhost:7700", "masterKey");
402402
client.DeleteKeyAsync("ac5cd97d-5a4b-4226-a868-2d0eb6d197ab")
403403
tenant_token_guide_generate_sdk_1: |-
404404
var apiKey = "B5KdX2MY2jV6EXfUs6scSfmC...";
@@ -413,8 +413,16 @@ tenant_token_guide_generate_sdk_1: |-
413413
expiresAt: expiresAt // optional
414414
);
415415
tenant_token_guide_search_sdk_1: |-
416-
frontEndClient = new MeilisearchClient("http://127.0.0.1:7700", token);
416+
frontEndClient = new MeilisearchClient("http://localhost:7700", token);
417417
SearchResult<Patient> searchResult = await frontEndClient.Index("patient_medical_records").SearchAsync<Patient>("blood test");
418+
getting_started_typo_tolerance: |-
419+
var typoTolerance = new TypoTolerance {
420+
MinWordSizeTypos = new TypoTolerance.TypoSize {
421+
OneTypo = 4
422+
}
423+
};
424+
425+
await client.Index("movies").UpdateTypoToleranceAsync(typoTolerance);
418426
get_typo_tolerance_1:
419427
await client.Index("books").GetTypoToleranceAsync();
420428
update_typo_tolerance_1: |-

0 commit comments

Comments
 (0)