You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/docker.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Docker is a tool that bundles applications into containers. Docker containers en
12
12
Docker containers are distributed in images. To use Meilisearch, use the `docker pull` command to download a Meilisearch image:
13
13
14
14
```sh
15
-
docker pull getmeili/meilisearch:v1.14
15
+
docker pull getmeili/meilisearch:v1.15
16
16
```
17
17
18
18
Meilisearch deploys a new Docker image with every release of the engine. Each image is tagged with the corresponding Meilisearch version, indicated in the above example by the text following the `:` symbol. You can see [the full list of available Meilisearch Docker images](https://hub.docker.com/r/getmeili/meilisearch/tags#!) on Docker Hub.
@@ -29,7 +29,7 @@ After completing the previous step, use `docker run` to launch the Meilisearch i
29
29
docker run -it --rm \
30
30
-p 7700:7700 \
31
31
-v $(pwd)/meili_data:/meili_data \
32
-
getmeili/meilisearch:v1.14
32
+
getmeili/meilisearch:v1.15
33
33
```
34
34
35
35
### Configure Meilisearch
@@ -45,7 +45,7 @@ docker run -it --rm \
45
45
-p 7700:7700 \
46
46
-e MEILI_MASTER_KEY='MASTER_KEY'\
47
47
-v $(pwd)/meili_data:/meili_data \
48
-
getmeili/meilisearch:v1.14
48
+
getmeili/meilisearch:v1.15
49
49
```
50
50
51
51
#### Passing instance options with CLI arguments
@@ -56,7 +56,7 @@ If you want to pass command-line arguments to Meilisearch with Docker, you must
56
56
docker run -it --rm \
57
57
-p 7700:7700 \
58
58
-v $(pwd)/meili_data:/meili_data \
59
-
getmeili/meilisearch:v1.14 \
59
+
getmeili/meilisearch:v1.15 \
60
60
meilisearch --master-key="MASTER_KEY"
61
61
```
62
62
@@ -74,7 +74,7 @@ To keep your data intact between reboots, specify a dedicated volume by running
74
74
docker run -it --rm \
75
75
-p 7700:7700 \
76
76
-v $(pwd)/meili_data:/meili_data \
77
-
getmeili/meilisearch:v1.14
77
+
getmeili/meilisearch:v1.15
78
78
```
79
79
80
80
The example above uses `$(pwd)/meili_data`, which is a directory in the host machine. Depending on your OS, mounting volumes from the host to the container might result in performance loss and is only recommended when developing your application.
@@ -89,7 +89,7 @@ To import a dump, use Meilisearch's `--import-dump` command-line option and spec
Copy file name to clipboardExpand all lines: learn/filtering_and_sorting/filter_expression_reference.mdx
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,14 +69,20 @@ genres != action
69
69
70
70
### Comparison (`>`, `<`, `>=`, `<=`)
71
71
72
-
The comparison operators (`>`, `<`, `>=`, `<=`) select documents satisfying a comparison. Comparison operators only apply only to numerical values.
72
+
The comparison operators (`>`, `<`, `>=`, `<=`) select documents satisfying a comparison. Comparison operators apply to both numerical and string values.
73
73
74
74
The expression below returns all documents with a user rating above 85:
75
75
76
76
```
77
77
rating.users > 85
78
78
```
79
79
80
+
String comparisons resolve in lexicographic order: symbols followed by numbers followed by letters in alphabetic order. The expression below returns all documents released after the first day of 2004:
81
+
82
+
```
83
+
release_date > 2004-01-01
84
+
```
85
+
80
86
### `TO`
81
87
82
88
`TO` is equivalent to `>= AND <=`. The following expression returns all documents with a rating of 80 or above but below 90:
Copy file name to clipboardExpand all lines: learn/filtering_and_sorting/working_with_dates.mdx
+4-32Lines changed: 4 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ In this guide, you will learn about Meilisearch's approach to date and time valu
14
14
15
15
## Preparing your documents
16
16
17
-
To filter and sort search results chronologically, your documents must have at least one numeric field containing a [UNIX timestamp](https://kb.narrative.io/what-is-unix-time).
17
+
To filter and sort search results chronologically, your documents must have at least one field containing a [UNIX timestamp](https://kb.narrative.io/what-is-unix-time). You may also use a string with a date in a format that can be sorted lexicographically, such as `"2025-01-13"`.
18
18
19
19
As an example, consider a database of video games. In this dataset, the release year is formatted as a timestamp:
20
20
@@ -41,39 +41,11 @@ As an example, consider a database of video games. In this dataset, the release
41
41
]
42
42
```
43
43
44
-
If your date field is expressed in a format other than a numeric timestamp, like [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html), you must convert it before indexing it with Meilisearch.
45
-
46
-
Most programming languages have built-in tools to help you with this process. The JavaScript example below converts a game's release date, `"2018-10-18"`, to a numeric timestamp:
47
-
48
-
```js
49
-
let game = {
50
-
"id":0,
51
-
"title":"Return of the Obra Dinn",
52
-
"genre":"adventure",
53
-
"release_date":"2018-10-18T00:00Z"
54
-
};
55
-
56
-
consttimestampInMilliseconds=Date.parse(game.release_date); // Date.parse returns the timestamp in milliseconds
57
-
consttimestamp= timestampInMilliseconds /1000; // UNIX timestamps must be in seconds
58
-
59
-
game = {
60
-
"id":0,
61
-
"title":"Return of the Obra Dinn",
62
-
"genre":"adventure",
63
-
"release_date":"2018-10-18T00:00Z",
64
-
"release_timestamp": timestamp
65
-
};
66
-
```
67
-
68
-
<Tip>
69
-
When preparing your dataset, it can be useful to leave the original date and time fields in your documents intact. In the example above, we keep the `release_date` field because it is more readable than the raw `release_timestamp`.
70
-
</Tip>
71
-
72
-
After adding a numeric timestamp to all documents, [index your data](/reference/api/documents#add-or-replace-documents) as usual. The example below adds a <aid="downloadVideogames"href="/assets/datasets/videogames.json"download="videogames.json">videogame dataset</a> to a `games` index:
44
+
Once all documents in your dataset have a date field, [index your data](/reference/api/documents#add-or-replace-documents) as usual. The example below adds a <aid="downloadVideogames"href="/assets/datasets/videogames.json"download="videogames.json">videogame dataset</a> to a `games` index:
73
45
74
46
<CodeSamplesDateGuideIndex1 />
75
47
76
-
## Filtering by timestamp
48
+
## Filtering by date
77
49
78
50
To filter search results based on their timestamp, add your document's timestamp field to the list of [`filterableAttributes`](/reference/api/settings#update-filterable-attributes):
79
51
@@ -83,7 +55,7 @@ Once you have configured `filterableAttributes`, you can filter search results b
83
55
84
56
<CodeSamplesDateGuideFilter1 />
85
57
86
-
## Sorting by timestamp
58
+
## Sorting by date
87
59
88
60
To sort search results chronologically, add your document's timestamp field to the list of [`sortableAttributes`](/reference/api/settings#update-sortable-attributes):
Copy file name to clipboardExpand all lines: learn/relevancy/typo_tolerance_settings.mdx
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,3 +65,13 @@ You can disable typo tolerance for a specific [document attribute](/learn/gettin
65
65
<CodeSamplesTypoToleranceGuide2 />
66
66
67
67
With the above settings, matches in the `title` attribute will not tolerate any typos. For example, a search for `beautiful` (9 characters) will not match the movie "Biutiful" starring Javier Bardem. With the default settings, this would be a match.
68
+
69
+
## `disableOnNumbers`
70
+
71
+
You can disable typo tolerance for all numeric values across all indexes and search requests by setting `disableOnNumbers` to `true`:
72
+
73
+
<CodeSamplesTypoToleranceGuide5 />
74
+
75
+
By default, typo tolerance on numerical values is turned on. This may lead to false positives, such as a search for `2024` matching documents containing `2025` or `2004`.
76
+
77
+
When `disableOnNumbers` is set to `true`, queries with numbers only return exact matches. Besides reducing the number of false positives, disabling typo tolerance on numbers may also improve indexing performance.
Copy file name to clipboardExpand all lines: learn/resources/experimental_features_overview.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,3 +58,4 @@ Activating or deactivating experimental features this way does not require you t
58
58
|[Composite embedders](/reference/api/settings#composite-embedders)| Enable composite embedders | API route |
59
59
|[Search query embedding cache](/learn/self_hosted/configure_meilisearch_at_launch#search-query-embedding-cache)| Enable a cache for search query embeddings | CLI flag or environment variable |
60
60
|[Uncompressed snapshots](/learn/self_hosted/configure_meilisearch_at_launch#uncompressed-snapshots)| Disable snapshot compaction | CLI flag or environment variable |
61
+
|[Maximum batch payload size](/learn/self_hosted/configure_meilisearch_at_launch#maximum-batch-payload-size)| Limit batch payload size | CLI flag or environment variable |
Copy file name to clipboardExpand all lines: learn/update_and_migration/updating.mdx
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,9 +47,9 @@ Once the project has been successfully updated, you will receive an email confir
47
47
48
48
## Updating a self-hosted Meilisearch instance
49
49
50
-
<Warning>
51
50
You may update a self-hosted instance in one of two ways: with or without a dump.
52
51
52
+
<Warning>
53
53
This guide only works for v0.15 and above. If you are using an older Meilisearch release, please [contact support](https://discord.meilisearch.com) for more information.
54
54
</Warning>
55
55
@@ -156,9 +156,21 @@ Meilisearch should launch normally and immediately create a new `UpgradeDatabase
156
156
157
157
While the task is processing, you may continue making search queries. You may also enqueue new tasks. Meilisearch will only process new tasks once `UpgradeDatabase` is completed.
158
158
159
-
<Warning>
160
-
If after the upgrade is completed the task status is set to `failed` or Meilisearch returns internal error messages to your queries, [restart your instance from the snapshot](/learn/data_backup/snapshots#starting-from-a-snapshot) you generated during step 1. You may then retry the upgrade, or upgrade using a dump. You are also welcome to open an issue on the [Meilisearch repository](https://github.com/meilisearch/meilisearch).
161
-
</Warning>
159
+
#### Rolling back an update
160
+
161
+
If the upgrade is taking too long, or if after the upgrade is completed its task status is set to `failed`, you can cancel the upgrade task.
162
+
163
+
Cancelling the update task automatically rolls back your database to its state before the upgrade began.
164
+
165
+
After launching Meilisearch with `--experimental-dumpless-upgrade` flag:
166
+
167
+
1. Cancel the `databaseUpgrade` task
168
+
2. If you cancelled the update before it failed, skip to the next step. If the update failed, relaunch Meilisearch using the binary of the version you were upgrading to
169
+
3. Wait for Meilisearch to process your cancellation request
170
+
4. Replace the new binary with the binary of the previous version
171
+
5. Relaunch Meilisearch
172
+
173
+
If you are upgrading Meilisearch to \<= v1.14, you must instead [restart your instance from the snapshot](/learn/data_backup/snapshots#starting-from-a-snapshot) you generated during step 1. You may then retry the upgrade, or upgrade using a dump. You are also welcome to open an issue on the [Meilisearch repository](https://github.com/meilisearch/meilisearch).
0 commit comments