Skip to content

Commit fe548d8

Browse files
committed
Add sleep to ensure filterable attributes have been set for integration tests
2 parents 13265c0 + ed2edbc commit fe548d8

File tree

5 files changed

+24
-13
lines changed

5 files changed

+24
-13
lines changed

.code-samples.meilisearch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ update_ranking_rules_1: |-
149149
reset_ranking_rules_1: |-
150150
let progress: Progress = movies.reset_ranking_rules().await.unwrap();
151151
get_distinct_attribute_1: |-
152-
let distinct_attribute: Option<String> = movies.get_distinct_attribute().await.unwrap();
152+
let distinct_attribute: Option<String> = shoes.get_distinct_attribute().await.unwrap();
153153
update_distinct_attribute_1: |-
154-
let progress: Progress = movies.set_distinct_attribute("movie_id").await.unwrap();
154+
let progress: Progress = shoes.set_distinct_attribute("skuid").await.unwrap();
155155
reset_distinct_attribute_1: |-
156-
let progress: Progress = movies.reset_distinct_attribute().await.unwrap();
156+
let progress: Progress = shoes.reset_distinct_attribute().await.unwrap();
157157
get_searchable_attributes_1: |-
158158
let searchable_attributes: Vec<String> = movies.get_searchable_attributes().await.unwrap();
159159
update_searchable_attributes_1: |-

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ To run the tests one by one, run:
4747

4848
```bash
4949
# Tests
50-
docker pull getmeili/meilisearch:latest # Fetch the latest version of MeiliSearch image from Docker Hub
51-
docker run -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --master-key=masterKey --no-analytics=true
50+
curl -L https://install.meilisearch.com | sh # download MeiliSearch
51+
./meilisearch --master-key=masterKey --no-analytics=true # run MeiliSearch
5252
cargo test -- --test-threads=1
5353
```
5454

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
- [📖 Documentation](#-documentation)
3737
- [🔧 Installation](#-installation)
3838
- [🚀 Getting Started](#-getting-started)
39+
- [🌐 Running in the Browser with WASM](#-running-in-the-browser-with-wasm)
3940
- [🤖 Compatibility with MeiliSearch](#-compatibility-with-meilisearch)
4041
- [⚙️ Development Workflow and Contributing](#️-development-workflow-and-contributing)
4142

@@ -70,10 +71,14 @@ This crate requires a MeiliSearch server to run.
7071

7172
There are many easy ways to [download and run a MeiliSearch instance](https://docs.meilisearch.com/reference/features/installation.html#download-and-launch).
7273

73-
For example, if you use Docker:
74+
For example,using the `curl` command in [your Terminal](https://itconnect.uw.edu/learn/workshops/online-tutorials/web-publishing/what-is-a-terminal/):
75+
7476
```bash
75-
docker pull getmeili/meilisearch:latest # Fetch the latest version of MeiliSearch image from Docker Hub
76-
docker run -it --rm -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --master-key=masterKey
77+
# Install MeiliSearch
78+
curl -L https://install.meilisearch.com | sh
79+
80+
# Launch MeiliSearch
81+
./meilisearch --master-key=masterKey
7782
```
7883

7984
NB: you can also download MeiliSearch from **Homebrew** or **APT**.
@@ -173,7 +178,7 @@ println!("{:?}", movies.search().with_query("wonder").with_filter("id > 1 AND ge
173178
}
174179
```
175180

176-
### 🌐 Running in the Browser with WASM <!-- omit in TOC -->
181+
## 🌐 Running in the Browser with WASM <!-- omit in TOC -->
177182

178183
This crate fully supports WASM.
179184

@@ -196,3 +201,4 @@ If you want to know more about the development workflow or want to contribute, p
196201
<hr>
197202

198203
**MeiliSearch** provides and maintains many **SDKs and Integration tools** like this one. We want to provide everyone with an **amazing search experience for any kind of project**. If you want to contribute, make suggestions, or just know what's going on right now, visit us in the [integration-guides](https://github.com/meilisearch/integration-guides) repository.
204+

README.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
- [📖 Documentation](#-documentation)
3737
- [🔧 Installation](#-installation)
3838
- [🚀 Getting Started](#-getting-started)
39+
- [🌐 Running in the Browser with WASM](#-running-in-the-browser-with-wasm)
3940
- [🤖 Compatibility with MeiliSearch](#-compatibility-with-meilisearch)
4041
- [⚙️ Development Workflow and Contributing](#️-development-workflow-and-contributing)
4142

src/lib.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,21 @@
2525
//!
2626
//! There are many easy ways to [download and run a MeiliSearch instance](https://docs.meilisearch.com/reference/features/installation.html#download-and-launch).
2727
//!
28-
//! For example, if you use Docker:
28+
//! For example,using the `curl` command in [your Terminal](https://itconnect.uw.edu/learn/workshops/online-tutorials/web-publishing/what-is-a-terminal/):
29+
//!
2930
//! ```bash
30-
//! docker pull getmeili/meilisearch:latest # Fetch the latest version of MeiliSearch image from Docker Hub
31-
//! docker run -it --rm -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --master-key=masterKey
31+
//! # Install MeiliSearch
32+
//! curl -L https://install.meilisearch.com | sh
33+
//!
34+
//! # Launch MeiliSearch
35+
//! ./meilisearch --master-key=masterKey
3236
//! ```
3337
//!
3438
//! NB: you can also download MeiliSearch from **Homebrew** or **APT**.
3539
//!
3640
//! # 🚀 Getting Started
3741
//!
38-
//! ```
42+
//! ```rust
3943
//! use meilisearch_sdk::{document::*, client::*, search::*};
4044
//! use serde::{Serialize, Deserialize};
4145
//! use futures::executor::block_on;

0 commit comments

Comments
 (0)