Skip to content

Commit 8e0f8d6

Browse files
Update code samples [skip ci]
1 parent 50c10c6 commit 8e0f8d6

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

snippets/samples/code_samples_facet_search_3.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ client.Index("books").FacetSearch(&meilisearch.FacetSearchRequest{
4949
```csharp C#
5050
var query = new SearchFacetsQuery()
5151
{
52-
FacetQuery = "c"
52+
FacetQuery = "c",
53+
ExhaustiveFacetCount: true
5354
};
5455
await client.Index("books").FacetSearchAsync("genres", query);
5556
```

snippets/samples/code_samples_getting_started_add_documents.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ $client->index('movies')->addDocuments($movies);
7878
// <dependency>
7979
// <groupId>com.meilisearch.sdk</groupId>
8080
// <artifactId>meilisearch-java</artifactId>
81-
// <version>0.15.0</version>
81+
// <version>0.16.1</version>
8282
// <type>pom</type>
8383
// </dependency>
8484

8585
// For Gradle
8686
// Add the following line to the `dependencies` section of your `build.gradle`:
8787
//
88-
// implementation 'com.meilisearch.sdk:meilisearch-java:0.15.0'
88+
// implementation 'com.meilisearch.sdk:meilisearch-java:0.16.1'
8989

9090
// In your .java file:
9191
import com.meilisearch.sdk;
@@ -192,7 +192,7 @@ namespace Meilisearch_demo
192192
```text Rust
193193
// In your .toml file:
194194
[dependencies]
195-
meilisearch-sdk = "0.29.1"
195+
meilisearch-sdk = "0.30.0"
196196
# futures: because we want to block on futures
197197
futures = "0.3"
198198
# serde: required if you are going to use documents
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<CodeGroup>
2+
3+
```dart Dart
4+
await client
5+
.index('INDEX_NAME')
6+
.search('badman', SearchQuery(rankingScoreThreshold: 0.2));
7+
```
8+
</CodeGroup>

snippets/samples/code_samples_rename_an_index_1.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,11 @@ curl \
66
-H 'Content-Type: application/json' \
77
--data-binary '{ "uid": "INDEX_B" }'
88
```
9+
10+
```rust Rust
11+
curl \
12+
-X PATCH 'MEILISEARCH_URL/indexes/INDEX_A' \
13+
-H 'Content-Type: application/json' \
14+
--data-binary '{ "uid": "INDEX_B" }'
15+
```
916
</CodeGroup>

snippets/samples/code_samples_typo_tolerance_guide_5.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ $client->index('movies')->updateTypoTolerance([
2727
]);
2828
```
2929

30+
```java Java
31+
TypoTolerance typoTolerance = new TypoTolerance();
32+
typoTolerance.setDisableOnNumbers(true);
33+
client.index("movies").updateTypoToleranceSettings(typoTolerance);
34+
```
35+
3036
```ruby Ruby
3137
index('books').update_typo_tolerance({ disable_on_numbers: true })
3238
```

0 commit comments

Comments
 (0)