Skip to content

Commit 3b42fcc

Browse files
committed
Replace localhost:7700 with MEILISEARCH_URL
1 parent be7fac3 commit 3b42fcc

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.code-samples.meilisearch.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ update_displayed_attributes_1: |-
260260
});
261261
reset_displayed_attributes_1: |-
262262
client.index("movies").resetDisplayedAttributesSettings();
263-
get_typo_tolerance_1:
264-
client.index("books").getTypoToleranceSettings();
263+
get_typo_tolerance_1: client.index("books").getTypoToleranceSettings();
265264
update_typo_tolerance_1: |-
266265
TypoTolerance typoTolerance = new TypoTolerance();
267266
HashMap<String, Integer> minWordSizeTypos =
@@ -480,7 +479,7 @@ getting_started_add_documents: |-
480479
481480
Path fileName = Path.of("movies.json");
482481
String moviesJson = Files.readString(fileName);
483-
Client client = new Client(new Config("http://localhost:7700", "aSampleMasterKey"));
482+
Client client = new Client(new Config("MEILISEARCH_URL", "aSampleMasterKey"));
484483
Index index = client.index("movies");
485484
index.addDocuments(moviesJson);
486485
getting_started_check_task_status: |-
@@ -529,7 +528,7 @@ add_movies_json_1: |-
529528
530529
Path fileName = Path.of("movies.json");
531530
String moviesJson = Files.readString(fileName);
532-
Client client = new Client(new Config("http://localhost:7700", "masterKey"));
531+
Client client = new Client(new Config("MEILISEARCH_URL", "masterKey"));
533532
Index index = client.index("movies");
534533
index.addDocuments(moviesJson);
535534
post_dump_1: |-
@@ -622,7 +621,7 @@ primary_field_guide_add_document_primary_key: |-
622621
+ "}]"
623622
, "reference_number");
624623
authorization_header_1: |-
625-
Client client = new Client(new Config("http://localhost:7700", "masterKey"));
624+
Client client = new Client(new Config("MEILISEARCH_URL", "masterKey"));
626625
client.getKeys();
627626
tenant_token_guide_generate_sdk_1: |-
628627
Map<String, Object> filters = new HashMap<String, Object>();
@@ -638,7 +637,7 @@ tenant_token_guide_generate_sdk_1: |-
638637
639638
String token = client.generateTenantToken("85c3c2f9-bdd6-41f1-abd8-11fcf80e0f76", searchRules, options);
640639
tenant_token_guide_search_sdk_1: |-
641-
Client frontEndClient = new Client(new Config("http://localhost:7700", token));
640+
Client frontEndClient = new Client(new Config("MEILISEARCH_URL", token));
642641
frontEndClient.index("patient_medical_records").search("blood test");
643642
date_guide_index_1: |-
644643
import com.meilisearch.sdk;

0 commit comments

Comments
 (0)