Skip to content

Commit 5beb393

Browse files
meili-bors[bot]curquizaguimachiavelli
authored
Merge #839
839: Remove _md code samples for Mintlify migration r=guimachiavelli a=curquiza Co-authored-by: Clémentine <[email protected]> Co-authored-by: gui machiavelli <[email protected]>
2 parents c69b8ba + e646c05 commit 5beb393

File tree

1 file changed

+18
-27
lines changed

1 file changed

+18
-27
lines changed

.code-samples.meilisearch.yaml

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -452,25 +452,23 @@ typo_tolerance_guide_4: |-
452452
};
453453
typoTolerance.setMinWordSizeForTypos(minWordSizeTypos);
454454
client.index("movies").updateTypoToleranceSettings(typoTolerance);
455-
getting_started_add_documents_md: |-
456-
**Maven**
457-
Add the following code to the `<dependencies>` section of your project:
458-
```xml
459-
<dependency>
460-
<groupId>com.meilisearch.sdk</groupId>
461-
<artifactId>meilisearch-java</artifactId>
462-
<version>0.14.4</version>
463-
<type>pom</type>
464-
</dependency>
465-
```
466-
467-
**Gradle**
468-
Add the following line to the `dependencies` section of your `build.gradle`:
469-
```groovy
470-
implementation 'com.meilisearch.sdk:meilisearch-java:0.14.4'
471-
```
472-
473-
```java
455+
getting_started_add_documents: |-
456+
// For Maven:
457+
// Add the following code to the `<dependencies>` section of your project:
458+
//
459+
// <dependency>
460+
// <groupId>com.meilisearch.sdk</groupId>
461+
// <artifactId>meilisearch-java</artifactId>
462+
// <version>0.14.3</version>
463+
// <type>pom</type>
464+
// </dependency>
465+
466+
// For Gradle
467+
// Add the following line to the `dependencies` section of your `build.gradle`:
468+
//
469+
// implementation 'com.meilisearch.sdk:meilisearch-java:0.14.3'
470+
471+
// In your .java file:
474472
import com.meilisearch.sdk;
475473
import java.nio.file.Files;
476474
import java.nio.file.Path;
@@ -480,17 +478,10 @@ getting_started_add_documents_md: |-
480478
Client client = new Client(new Config("http://localhost:7700", "aSampleMasterKey"));
481479
Index index = client.index("movies");
482480
index.addDocuments(moviesJson);
483-
```
484-
485-
[About this SDK](https://github.com/meilisearch/meilisearch-java)
486481
getting_started_check_task_status: |-
487482
client.getTask(0);
488-
getting_started_search_md: |-
489-
```java
483+
getting_started_search: |-
490484
client.index("movies").search("botman");
491-
```
492-
493-
[About this SDK](https://github.com/meilisearch/meilisearch-java)
494485
getting_started_add_meteorites: |-
495486
import com.meilisearch.sdk;
496487
import org.json.JSONArray;

0 commit comments

Comments
 (0)