diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 136cdd6a..c016d78c 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -452,25 +452,23 @@ typo_tolerance_guide_4: |- }; typoTolerance.setMinWordSizeForTypos(minWordSizeTypos); client.index("movies").updateTypoToleranceSettings(typoTolerance); -getting_started_add_documents_md: |- - **Maven** - Add the following code to the `` section of your project: - ```xml - - com.meilisearch.sdk - meilisearch-java - 0.14.4 - pom - - ``` - - **Gradle** - Add the following line to the `dependencies` section of your `build.gradle`: - ```groovy - implementation 'com.meilisearch.sdk:meilisearch-java:0.14.4' - ``` - - ```java +getting_started_add_documents: |- + // For Maven: + // Add the following code to the `` section of your project: + // + // + // com.meilisearch.sdk + // meilisearch-java + // 0.14.3 + // pom + // + + // For Gradle + // Add the following line to the `dependencies` section of your `build.gradle`: + // + // implementation 'com.meilisearch.sdk:meilisearch-java:0.14.3' + + // In your .java file: import com.meilisearch.sdk; import java.nio.file.Files; import java.nio.file.Path; @@ -480,17 +478,10 @@ getting_started_add_documents_md: |- Client client = new Client(new Config("http://localhost:7700", "aSampleMasterKey")); Index index = client.index("movies"); index.addDocuments(moviesJson); - ``` - - [About this SDK](https://github.com/meilisearch/meilisearch-java) getting_started_check_task_status: |- client.getTask(0); -getting_started_search_md: |- - ```java +getting_started_search: |- client.index("movies").search("botman"); - ``` - - [About this SDK](https://github.com/meilisearch/meilisearch-java) getting_started_add_meteorites: |- import com.meilisearch.sdk; import org.json.JSONArray;