Skip to content

Commit db32c7f

Browse files
committed
Merge
2 parents 7db2d7b + 1630d13 commit db32c7f

File tree

20 files changed

+245
-219
lines changed

20 files changed

+245
-219
lines changed

.code-samples.meilisearch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ primary_field_guide_add_document_primary_key: |-
854854
getting_started_add_documents_md: |-
855855
```toml
856856
[dependencies]
857-
meilisearch-sdk = "0.23.1"
857+
meilisearch-sdk = "0.23.2"
858858
# futures: because we want to block on futures
859859
futures = "0.3"
860860
# serde: required if you are going to use documents

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ First of all, thank you for contributing to Meilisearch! The goal of this docume
1212
## Assumptions
1313

1414
1. **You're familiar with [GitHub](https://github.com) and the [Pull Request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests)(PR) workflow.**
15-
2. **You've read the Meilisearch [documentation](https://docs.meilisearch.com) and the [README](/README.md).**
16-
3. **You know about the [Meilisearch community](https://docs.meilisearch.com/learn/what_is_meilisearch/contact.html). Please use this for help.**
15+
2. **You've read the Meilisearch [documentation](https://www.meilisearch.com/docs) and the [README](/README.md).**
16+
3. **You know about the [Meilisearch community](https://discord.com/invite/meilisearch). Please use this for help.**
1717

1818
## How to Contribute
1919

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "meilisearch-sdk"
3-
version = "0.23.1"
3+
version = "0.23.2"
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."
@@ -22,7 +22,7 @@ jsonwebtoken = { version = "8", default-features = false }
2222
yaup = "0.2.0"
2323
either = { version = "1.8.0", features = ["serde"] }
2424
thiserror = "1.0.37"
25-
meilisearch-index-setting-macro = { path = "meilisearch-index-setting-macro", version = "0.23.1" }
25+
meilisearch-index-setting-macro = { path = "meilisearch-index-setting-macro", version = "0.23.2" }
2626

2727

2828
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
@@ -40,6 +40,7 @@ wasm-bindgen-futures = "0.4"
4040
[features]
4141
default = ["isahc-static-curl"]
4242
isahc-static-curl = ["isahc/static-curl"]
43+
isahc-static-ssl = ["isahc/static-ssl"]
4344

4445
[dev-dependencies]
4546
env_logger = "0.10"

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
<h4 align="center">
1212
<a href="https://github.com/meilisearch/meilisearch">Meilisearch</a> |
13-
<a href="https://docs.meilisearch.com">Documentation</a> |
13+
<a href="https://www.meilisearch.com/docs">Documentation</a> |
1414
<a href="https://discord.meilisearch.com">Discord</a> |
1515
<a href="https://roadmap.meilisearch.com/tabs/1-under-consideration">Roadmap</a> |
1616
<a href="https://www.meilisearch.com">Website</a> |
17-
<a href="https://docs.meilisearch.com/faq">FAQ</a>
17+
<a href="https://www.meilisearch.com/docs/faq">FAQ</a>
1818
</h4>
1919

2020
<p align="center">
@@ -44,15 +44,15 @@
4444

4545
This readme contains all the documentation you need to start using this Meilisearch SDK.
4646

47-
For general information on how to use Meilisearch—such as our API reference, tutorials, guides, and in-depth articles—refer to our [main documentation website](https://docs.meilisearch.com/).
47+
For general information on how to use Meilisearch—such as our API reference, tutorials, guides, and in-depth articles—refer to our [main documentation website](https://www.meilisearch.com/docs).
4848

4949
## 🔧 Installation
5050

5151
To use `meilisearch-sdk`, add this to your `Cargo.toml`:
5252

5353
```toml
5454
[dependencies]
55-
meilisearch-sdk = "0.23.1"
55+
meilisearch-sdk = "0.23.2"
5656
```
5757

5858
The following optional dependencies may also be useful:
@@ -71,7 +71,7 @@ Using this crate is possible without [serde](https://crates.io/crates/serde), bu
7171

7272
This crate requires a Meilisearch server to run.
7373

74-
There are many easy ways to [download and run a Meilisearch instance](https://docs.meilisearch.com/reference/features/installation.html#download-and-launch).
74+
There are many easy ways to [download and run a Meilisearch instance](https://www.meilisearch.com/docs/learn/getting_started/installation).
7575

7676
For example,using the `curl` command in [your Terminal](https://itconnect.uw.edu/learn/workshops/online-tutorials/web-publishing/what-is-a-terminal/):
7777

@@ -121,7 +121,7 @@ fn main() { block_on(async move {
121121
})}
122122
```
123123

124-
With the `uid`, you can check the status (`enqueued`, `processing`, `succeeded` or `failed`) of your documents addition using the [task](https://docs.meilisearch.com/reference/api/tasks.html#get-task).
124+
With the `uid`, you can check the status (`enqueued`, `processing`, `succeeded` or `failed`) of your documents addition using the [task](https://www.meilisearch.com/docs/reference/api/tasks#get-task).
125125

126126
#### Basic Search <!-- omit in TOC -->
127127

@@ -199,7 +199,7 @@ client.index("movies_4").set_filterable_attributes(&filterable_attributes).await
199199

200200
You only need to perform this operation once.
201201

202-
Note that Meilisearch will rebuild your index whenever you update `filterableAttributes`. Depending on the size of your dataset, this might take time. You can track the process using the [tasks](https://docs.meilisearch.com/reference/api/tasks.html#get-task)).
202+
Note that Meilisearch will rebuild your index whenever you update `filterableAttributes`. Depending on the size of your dataset, this might take time. You can track the process using the [tasks](https://www.meilisearch.com/docs/reference/api/tasks#get-task).
203203

204204
Then, you can perform the search:
205205

README.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
<h4 align="center">
1212
<a href="https://github.com/meilisearch/meilisearch">Meilisearch</a> |
13-
<a href="https://docs.meilisearch.com">Documentation</a> |
13+
<a href="https://www.meilisearch.com/docs">Documentation</a> |
1414
<a href="https://discord.meilisearch.com">Discord</a> |
1515
<a href="https://roadmap.meilisearch.com/tabs/1-under-consideration">Roadmap</a> |
1616
<a href="https://www.meilisearch.com">Website</a> |
17-
<a href="https://docs.meilisearch.com/faq">FAQ</a>
17+
<a href="https://www.meilisearch.com/docs/faq">FAQ</a>
1818
</h4>
1919

2020
<p align="center">
@@ -44,15 +44,15 @@
4444

4545
This readme contains all the documentation you need to start using this Meilisearch SDK.
4646

47-
For general information on how to use Meilisearch—such as our API reference, tutorials, guides, and in-depth articles—refer to our [main documentation website](https://docs.meilisearch.com/).
47+
For general information on how to use Meilisearch—such as our API reference, tutorials, guides, and in-depth articles—refer to our [main documentation website](https://www.meilisearch.com/docs).
4848

4949
## 🔧 Installation
5050

5151
To use `meilisearch-sdk`, add this to your `Cargo.toml`:
5252

5353
```toml
5454
[dependencies]
55-
meilisearch-sdk = "0.23.1"
55+
meilisearch-sdk = "0.23.2"
5656
```
5757

5858
The following optional dependencies may also be useful:
@@ -71,7 +71,7 @@ Using this crate is possible without [serde](https://crates.io/crates/serde), bu
7171

7272
This crate requires a Meilisearch server to run.
7373

74-
There are many easy ways to [download and run a Meilisearch instance](https://docs.meilisearch.com/reference/features/installation.html#download-and-launch).
74+
There are many easy ways to [download and run a Meilisearch instance](https://www.meilisearch.com/docs/learn/getting_started/installation).
7575

7676
For example,using the `curl` command in [your Terminal](https://itconnect.uw.edu/learn/workshops/online-tutorials/web-publishing/what-is-a-terminal/):
7777

examples/settings.rs

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async fn main() {
2323
.expect("An error happened with the index creation.");
2424

2525
// And now we can update the settings!
26-
// You can read more about the available options here: https://docs.meilisearch.com/learn/configuration/settings.html#index-settings
26+
// You can read more about the available options here: https://www.meilisearch.com/docs/learn/configuration/settings#index-settings
2727
let settings: Settings = Settings::new()
2828
.with_searchable_attributes(["name", "title"])
2929
.with_filterable_attributes(["created_at"]);
@@ -39,12 +39,11 @@ async fn main() {
3939
.expect("Could not join the remote server.");
4040

4141
// We check if the task failed.
42-
if task.is_failure() {
43-
panic!(
44-
"Could not update the settings. {}",
45-
task.unwrap_failure().error_message
46-
);
47-
}
42+
assert!(
43+
!task.is_failure(),
44+
"Could not update the settings. {}",
45+
task.unwrap_failure().error_message
46+
);
4847

4948
// And finally we delete the `Index`.
5049
my_index
@@ -56,10 +55,9 @@ async fn main() {
5655
.expect("Could not join the remote server.");
5756

5857
// We check if the task failed.
59-
if task.is_failure() {
60-
panic!(
61-
"Could not delete the index. {}",
62-
task.unwrap_failure().error_message
63-
);
64-
}
58+
assert!(
59+
!task.is_failure(),
60+
"Could not delete the index. {}",
61+
task.unwrap_failure().error_message
62+
);
6563
}

examples/web_app/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Component for Model {
4444
type Message = Msg;
4545
type Properties = ();
4646
fn create(_ctx: &Context<Self>) -> Model {
47-
Self {
47+
Model {
4848
// The index method avoids checking the existence of the index.
4949
// It won't make any HTTP request so the function is not async so it's easier to use.
5050
// Use only if you are sure that the index exists.

meilisearch-index-setting-macro/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "meilisearch-index-setting-macro"
3-
version = "0.23.1"
3+
version = "0.23.2"
44
description = "Helper tool to generate settings of an Meilisearch index"
55
edition = "2021"
66
license = "MIT"

0 commit comments

Comments
 (0)