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
45 changes: 18 additions & 27 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<dependencies>` section of your project:
```xml
<dependency>
<groupId>com.meilisearch.sdk</groupId>
<artifactId>meilisearch-java</artifactId>
<version>0.14.4</version>
<type>pom</type>
</dependency>
```

**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 `<dependencies>` section of your project:
//
// <dependency>
// <groupId>com.meilisearch.sdk</groupId>
// <artifactId>meilisearch-java</artifactId>
// <version>0.14.3</version>
// <type>pom</type>
// </dependency>

// 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;
Expand All @@ -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;
Expand Down