Skip to content

Commit c475ae5

Browse files
Merge branch 'master' into v0.28
2 parents 184c6bf + b119f63 commit c475ae5

24 files changed

+138
-83
lines changed

.code-samples.meilisearch.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ getting_started_configure_settings: |-
622622
}'
623623
getting_started_communicating_with_a_protected_instance: |-
624624
curl \
625-
-X POST 'http://127.0.0.1:7700/indexes/movies/search' \
625+
-X POST 'http://localhost:7700/indexes/movies/search' \
626626
-H 'Authorization: Bearer API_KEY'
627627
faceted_search_update_settings_1: |-
628628
curl \
@@ -897,11 +897,11 @@ settings_guide_typo_tolerance_1: |-
897897
}'
898898
updating_guide_check_version_new_authorization_header: |-
899899
curl \
900-
-X GET 'http://127.0.0.1:7700/version' \
900+
-X GET 'http://localhost:7700/version' \
901901
-H 'Authorization: Bearer API_KEY'
902902
updating_guide_check_version_old_authorization_header: |-
903903
curl \
904-
-X GET 'http://127.0.0.1:7700/version' \
904+
-X GET 'http://localhost:7700/version' \
905905
-H 'X-Meili-API-Key: API_KEY'
906906
updating_guide_get_displayed_attributes_new: |-
907907
# whenever you see {index_uid}, replace it with your index's unique id
@@ -951,3 +951,10 @@ updating_guide_add_documents_old: |-
951951
-X POST 'http://localhost:7700/indexes/{index_uid}/documents' \
952952
-H 'Content-Type: application/json' -d @mydocuments.json \
953953
-H 'X-Meili-API-Key: API_KEY'
954+
getting_started_typo_tolerance: |-
955+
curl \
956+
-X POST 'http://localhost:7700/indexes/movies/settings/typo-tolerance' \
957+
-H 'Content-Type: application/json' \
958+
--data-binary '{
959+
"minWordSizeForTypos": { "oneTypo": 4 }
960+
}'

.vuepress/public/sample-template.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,4 @@ updating_guide_get_settings_old: |-
145145
updating_guide_retrieve_documents_old: |-
146146
updating_guide_update_settings_old: |-
147147
updating_guide_add_documents_old: |-
148+
getting_started_typo_tolerance: |-

learn/advanced/datatypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ You can also create [filters](/learn/advanced/filtering_and_faceted_search.md).
6161

6262
## Boolean
6363

64-
A Boolean value, which is either `true` or `false`, is received and converted to a lowercase human-readable text (i.e. `true` and `false`). Booleans can be searched as they are converted to strings.
64+
A Boolean value, which is either `true` or `false`, is received and converted to a lowercase human-readable text (i.e., `true` and `false`). Booleans can be searched as they are converted to strings.
6565

6666
## `null`
6767

learn/advanced/snapshots.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Snapshots
22

3-
A snapshot is an exact copy of the database (i.e. the `data.ms` folder) at the time the snapshot was created. Besides compression, snapshots do not go through any processing. They can be thought of as "pre-compiled copies".
3+
A snapshot is an exact copy of the database (i.e., the `data.ms` folder) at the time the snapshot was created. Besides compression, snapshots do not go through any processing. They can be thought of as "pre-compiled copies".
44

55
Using this feature, it is possible to schedule snapshot creation at custom intervals and use existing snapshots to restore Meilisearch.
66

@@ -50,7 +50,7 @@ meilisearch --import-snapshot mySnapShots/data.ms.snapshot
5050

5151
Take note that whenever you launch Meilisearch from a snapshot, it will **stop processing and throw an error** if it encounters either of the two following situations:
5252

53-
1. A database already exists (i.e. you have a non-empty `data.ms` folder in the same directory as your Meilisearch binary)
53+
1. A database already exists (i.e., you have a non-empty `data.ms` folder in the same directory as your Meilisearch binary)
5454
2. No snapshot is found at the given path
5555

5656
In both cases, **this behavior is [configurable](/learn/configuration/instance_options.md#ignore-missing-snapshot)**.

learn/advanced/tokenization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This allows Meilisearch to function in several different languages with zero set
1010

1111
![Chart illustrating the architecture of Meilisearch's tokenizer](https://user-images.githubusercontent.com/6482087/102896344-8560d200-4466-11eb-8cfe-b4ae8741093b.jpg)
1212

13-
When you add documents to a Meilisearch index, the tokenization process is handled by an abstract interface called an **analyzer**. The analyzer is responsible for determining the primary language of each field based on the scripts (e.g. Latin alphabet, Chinese hanzi, etc.) that are present there. Then, it applies the corresponding **pipeline** to each field.
13+
When you add documents to a Meilisearch index, the tokenization process is handled by an abstract interface called an **analyzer**. The analyzer is responsible for determining the primary language of each field based on the scripts (e.g., Latin alphabet, Chinese hanzi, etc.) that are present there. Then, it applies the corresponding **pipeline** to each field.
1414

1515
We can break down the tokenization process like so:
1616

learn/advanced/updating.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you have already **installed the latest version and manually indexed your dat
1010

1111
## Verify your database version
1212

13-
Before we begin, you need to **verify the version of Meilisearch that's compatible with your database**, i.e. the version that indexed the data. You can do so by launching a Meilisearch instance:
13+
Before we begin, you need to **verify the version of Meilisearch that's compatible with your database**, i.e., the version that indexed the data. You can do so by launching a Meilisearch instance:
1414

1515
```bash
1616
./meilisearch --master-key="MASTER_KEY"
@@ -37,7 +37,7 @@ The response should look something like this:
3737

3838
If you get the error `Cannot open database, expected Meilisearch engine version: 0.X.X, current engine version 0.Y.Y`, your database is not compatible with the currently installed Meilisearch version.
3939

40-
In this case, you need to **download the compatible version now** (i.e. `0.X.X` in the above error message) so that you can access and export your database.
40+
In this case, you need to **download the compatible version now** (i.e., `0.X.X` in the above error message) so that you can access and export your database.
4141

4242
:::: tabs
4343

learn/configuration/instance_options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ In the previous example, `./meilisearch` is the command that launches a Meilisea
4242

4343
Environment variables for command-line flags accept `n`, `no`, `f`, `false`, `off`, and `0` as `false`. An absent environment variable will also be considered as `false`. Any other value is considered `true`.
4444

45-
Environment variables are always identical to the corresponding command-line option, but prepended with `MEILI_` and written in all uppercase. **Some options (e.g. `--import-snapshots`) are not available as environment variables.**
45+
Environment variables are always identical to the corresponding command-line option, but prepended with `MEILI_` and written in all uppercase. **Some options (e.g., `--import-snapshots`) are not available as environment variables.**
4646

4747
## All instance options
4848

learn/configuration/typo_tolerance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Typo tolerance
22

3-
Typo tolerance helps users find relevant results even when their search queries contain spelling mistakes or typos, e.g. typing `phnoe` instead of `phone`. You can [configure the typo tolerance feature for each index](/reference/api/typo_tolerance.md#update-typo-tolerance).
3+
Typo tolerance helps users find relevant results even when their search queries contain spelling mistakes or typos, e.g., typing `phnoe` instead of `phone`. You can [configure the typo tolerance feature for each index](/reference/api/typo_tolerance.md#update-typo-tolerance).
44

55
## Configuring typo tolerance
66

learn/contributing/contributing_to_docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ On the Meilisearch documentation team, [GitHub Issues](https://github.com/meilis
1919

2020
- A detailed bug report
2121
- A request for a new technical feature (e.g. dark mode, versioning, etc.)
22-
- A request for new content (e.g. a tutorial, guide, or explanation)
22+
- A request for new content (e.g., a tutorial, guide, or explanation)
2323
- A helpful suggestion for the future of the documentation
2424

2525
We love issues at Meilisearch, because they help us do our jobs better. Nine times out of ten, the most useful contribution is a simple GitHub issue that points out a problem and proposes a solution.
@@ -61,7 +61,7 @@ All you need to continue is a [GitHub account](https://github.com).
6161
1. On the documentation page you'd like to edit, scroll to the bottom and click **"Edit this page"** on the left. This will take you to GitHub.
6262
2. If you're not already signed in, do so now. You may be prompted to create a [fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo)—if so, do it.
6363
3. Use GitHub's text editor to make the change you want.
64-
4. Scroll down to where it says `Propose changes`. In the first text box, write a short description (e.g. "Fix typo"). In the second text box, write a longer description of your changes if necessary.
64+
4. Scroll down to where it says `Propose changes`. In the first text box, write a short description (e.g., "Fix typo"). In the second text box, write a longer description of your changes if necessary.
6565
5. Click `Propose changes` to continue. You should see a page that says `Comparing changes`. This screen is prompting you to create a pull request.
6666
6. Make sure the base repository is `meilisearch/documentation` and the base is `master`. Don't worry about the other two boxes—they automatically target the changes you just made.
6767
7. Below, you can see the changes you made compared to the master branch (what's currently published on docs.meilisearch.com). When you're ready, click `Create pull request`.

learn/cookbooks/koyeb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Using a master key is optional but strongly recommended when running in producti
3030

3131
### Test Meilisearch
3232

33-
Copy the public URL (e.g. `https://meili-myorg.koyeb.app`) from the [Koyeb control panel](https://app.koyeb.com) and paste it in your browser.
33+
Copy the public URL (e.g., `https://meili-myorg.koyeb.app`) from the [Koyeb control panel](https://app.koyeb.com) and paste it in your browser.
3434

3535
You should land on the Meilisearch [search preview](/learn/what_is_meilisearch/search_preview.md), where you are asked to enter your master key.
3636

learn/cookbooks/qovery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Visit the [Qovery dashboard](https://start.qovery.com) to create an account if y
2525

2626
### 3. Create a new environment
2727

28-
* Click on **Create environment** and give it a name (e.g. staging, production).
28+
* Click on **Create environment** and give it a name (e.g., staging, production).
2929

3030
!["Create environment" button](https://hub.qovery.com/img/heroku/heroku-3.png)
3131

learn/cookbooks/search_bar_for_docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The Meili team provides and maintains a [scraper tool](https://github.com/meilis
4040

4141
### Configuration file
4242

43-
The scraper tool needs a configuration file to know what content you want to scrape. This is done by providing selectors (e.g. the HTML tag).
43+
The scraper tool needs a configuration file to know what content you want to scrape. This is done by providing selectors (e.g., the HTML tag).
4444

4545
Here is an example of a basic configuration file:
4646

learn/core_concepts/documents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ As an example, let's say you are creating an index that contains information abo
8484
In the above example:
8585

8686
- `"id"`, `"title"`, `"genres"`, `"release-year"`, and `"cast"` are attributes
87-
- Each attribute is associated with a value, e.g. `"Kung Fu Panda"` is the value of `"title"`
87+
- Each attribute is associated with a value, e.g., `"Kung Fu Panda"` is the value of `"title"`
8888
- The document contains a field with the primary key attribute and a unique document id as its value: `"id": "1564saqw12ss"`
8989

9090
#### NDJSON

0 commit comments

Comments
 (0)