Skip to content

Commit 1bcf1c8

Browse files
committed
Merge main
2 parents 128daac + c5c6e27 commit 1bcf1c8

File tree

19 files changed

+2546
-854
lines changed

19 files changed

+2546
-854
lines changed

.code-samples.meilisearch.yaml

Lines changed: 133 additions & 82 deletions
Large diffs are not rendered by default.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "meilisearch-sdk"
3-
version = "0.17.0"
3+
version = "0.18.0"
44
authors = ["Mubelotix <[email protected]>"]
55
edition = "2018"
66
description = "Rust wrapper for the Meilisearch API. Meilisearch is a powerful, fast, open-source, easy to use and deploy search engine."
@@ -24,6 +24,7 @@ yaup = "0.2.0"
2424
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
2525
futures = "0.3"
2626
isahc = { version = "1.0", features = ["http2", "text-decoding"], default_features = false }
27+
uuid = { version = "1.1.2", features = ["v4"] }
2728

2829
[target.'cfg(target_arch = "wasm32")'.dependencies]
2930
js-sys = "0.3.47"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To use `meilisearch-sdk`, add this to your `Cargo.toml`:
5050

5151
```toml
5252
[dependencies]
53-
meilisearch-sdk = "0.17.0"
53+
meilisearch-sdk = "0.18.0"
5454
```
5555

5656
The following optional dependencies may also be useful:
@@ -224,7 +224,7 @@ Json output:
224224
],
225225
"offset": 0,
226226
"limit": 20,
227-
"nbHits": 1,
227+
"estimatedTotalHits": 1,
228228
"processingTimeMs": 0,
229229
"query": "wonder"
230230
}

README.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To use `meilisearch-sdk`, add this to your `Cargo.toml`:
5050

5151
```toml
5252
[dependencies]
53-
meilisearch-sdk = "0.17.0"
53+
meilisearch-sdk = "0.18.0"
5454
```
5555

5656
The following optional dependencies may also be useful:

meilisearch-test-macro/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async fn test_get_tasks() -> Result<(), Error> {
2525

2626
let tasks = index.get_tasks().await?;
2727
// The only task is the creation of the index
28-
assert_eq!(status.len(), 1);
28+
assert_eq!(status.results.len(), 1);
2929

3030
index.delete()
3131
.await?
@@ -52,7 +52,7 @@ With this macro, all these problems are solved. See a rewrite of this test:
5252
async fn test_get_tasks(index: Index, client: Client) -> Result<(), Error> {
5353
let tasks = index.get_tasks().await?;
5454
// The only task is the creation of the index
55-
assert_eq!(status.len(), 1);
55+
assert_eq!(status.results.len(), 1);
5656
}
5757
```
5858

0 commit comments

Comments
 (0)