Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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<String, Object> filters = new HashMap<String, Object>();
Expand All @@ -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;
Expand Down