API Reference
Meilisearch JS
Official Meilisearch JavaScript client for instant search, document indexing, and filtering.
Official Documentation ↗CompatibilityThis documentation covers version
v0.40. Check the official docs for the latest API surface.Installation
npm
npm install meilisearchMethods
No methods match this filter.
The Meilisearch client talks to a Meilisearch server for fast full-text and filtered search.
Key Features
- Async document indexing with task tracking
- Typed search parameters and filters
- API key aware client
Usage Notes
Pin a version and check the official docs for the API surface you depend on before upgrading.
FAQ
- Are writes synchronous?
- No. Indexing returns a task you must wait on with client.tasks.waitForTask before the data is searchable.
- How do I secure the API key?
- Use a search-only key in the browser and keep the admin key on the server. Never ship the admin key to clients.
- What is a primaryKey?
- The field Meilisearch uses as the unique document id. Set it explicitly with options when your id field is not named id.
Report a problem with this API docOpens a pre-filled issue on GitHub.