Skip to main content
This guide walks you through setting up Meilisearch with JavaScript/Node.js.

Prerequisites

  • Node.js 14 or higher
  • A Meilisearch instance. The fastest way to get one is a Meilisearch Cloud project: free trial, no credit card required. From your terminal, meili trial start creates your account and a trial project in one command, see the CLI quick start. You can also run Meilisearch locally for development

1. Install the SDK

2. Connect to Meilisearch

Set your environment variables:
Start a free trial on Meilisearch Cloud, no credit card required.

3. Add documents

5. Search with filters

First, configure filterable attributes:
Then search with filters:

Full example

Next steps

Front-end integration

Add search to your React, Vue, or Angular app

Full-text search

Configure ranking and relevancy

Filtering

Add filters and facets

API reference

Explore all search parameters

Resources