A new month means a new version of Meilisearch, and November is no different. This release introduces a feature that makes Meilisearch easier to set up and use: implicit index creation. We have also improved the design around dumps and snapshots.
As always, our number one goal for these features is simplicity of use. We want to make Meilisearch as accessible and intuitive as it can be without sacrificing speed, power, or flexibility. With that in mind, let's dive in!
Implicit index creation
Previously, adding documents to Meilisearch required you to first create an index using the create index endpoint. Only afterwards could you add documents by providing the
As of this release, that first step is no longer necessary: documents can be added directly without having to previously create the index.
In the above example, we call the add documents endpoint and provide
movies as the index destination. If an index called
movies already existed, the above command would simply add the documents there. However, since in this example the index
movies was not previously created, it will instead create a new index titled
movies and add the provided documents there.
TL;DR: If the provided index does not already exist during document addition, the index will be automatically created.
Improvements to dumps and snapshots
After experimenting with dumps and snapshots over the last month, we have decided to make some changes to the API design (and fix a few bugs while we're at it).
If you'd like to learn more about dumps and snapshots, check out this guide.
- The three possibles statuses for dumps have had their names changed for clarity. They are now
- The dump status body will now include the usual error body in case of an error.
- We have chosen to remove the environment variable
--import-dumplaunch option remains unchanged.
--dumps-folderoption has been changed to
- The environment variable
MEILI_DUMPS_FOLDERhas been changed to
- Dump files now have the extension
--snapshot-pathlaunch option has been changed to
- The environment variable
MEILI_SNAPSHOT_PATHhas been changed to
- Previously, the
--snapshot-folderoption was used to activate snapshots. Now,
--snapshot-folderhas a default value of
--schedule-snapshotis the new way to activate snapshot creation.
--load-from-snapshothas been renamed to
- Snapshot files now have the extension
- The following environment variables have been removed:
MEILI_SNAPSHOT_IF_DB_EXISTS. Their equivalent CLI options are unchanged.
- Meilisearch's default web interface now has a working url encoder to avoid problems with special chars.
fieldsDistributionin the index stats endpoint are now ordered and will always be returned in the same order.
- We removed the update health endpoint.
- The provided
moviesdataset has been refreshed. Every poster link is now working and every
genrefield has been updated to
Thanks to @akrantz01 for his contribution on the
urlEncode issue, and to @jcohlmeyer for taking the time to explain the issue.
Thanks to @gorogoroumaru for his contribution to fixing the display order of the
We are always eager to hear more feedback from our users and contributors! Feel free to come talk with us using the method you prefer.
We are also thrilled by the supportiveness of our community, which seems to be constantly growing in both stars and users. Let's keep it up!
Thank you for using our search engine! If you like it, consider starring us on github.