diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index efad25fe..bccc947b 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -260,7 +260,7 @@ update_displayed_attributes_1: |- }); reset_displayed_attributes_1: |- client.index("movies").resetDisplayedAttributesSettings(); -get_typo_tolerance_1: +get_typo_tolerance_1: |- client.index("books").getTypoToleranceSettings(); update_typo_tolerance_1: |- TypoTolerance typoTolerance = new TypoTolerance(); @@ -480,7 +480,7 @@ getting_started_add_documents: |- Path fileName = Path.of("movies.json"); String moviesJson = Files.readString(fileName); - Client client = new Client(new Config("http://localhost:7700", "aSampleMasterKey")); + Client client = new Client(new Config("MEILISEARCH_URL", "aSampleMasterKey")); Index index = client.index("movies"); index.addDocuments(moviesJson); getting_started_check_task_status: |- @@ -529,7 +529,7 @@ add_movies_json_1: |- Path fileName = Path.of("movies.json"); String moviesJson = Files.readString(fileName); - Client client = new Client(new Config("http://localhost:7700", "masterKey")); + Client client = new Client(new Config("MEILISEARCH_URL", "masterKey")); Index index = client.index("movies"); index.addDocuments(moviesJson); post_dump_1: |- @@ -622,7 +622,7 @@ primary_field_guide_add_document_primary_key: |- + "}]" , "reference_number"); authorization_header_1: |- - Client client = new Client(new Config("http://localhost:7700", "masterKey")); + Client client = new Client(new Config("MEILISEARCH_URL", "masterKey")); client.getKeys(); tenant_token_guide_generate_sdk_1: |- Map filters = new HashMap(); @@ -638,7 +638,7 @@ tenant_token_guide_generate_sdk_1: |- String token = client.generateTenantToken("85c3c2f9-bdd6-41f1-abd8-11fcf80e0f76", searchRules, options); tenant_token_guide_search_sdk_1: |- - Client frontEndClient = new Client(new Config("http://localhost:7700", token)); + Client frontEndClient = new Client(new Config("MEILISEARCH_URL", token)); frontEndClient.index("patient_medical_records").search("blood test"); date_guide_index_1: |- import com.meilisearch.sdk;