Skip to main content
This guide walks you through setting up Meilisearch with Ruby.

Prerequisites

1. Install the SDK

Or add to your Gemfile:

2. Connect to Meilisearch

Set your environment variables:
Get a free Cloud instance →

3. Add documents

5. Search with filters

First, configure filterable attributes:
Then search with filters:

Full example

Rails integration

For Rails applications, use the meilisearch-rails gem:
Add to your model:
See the full Rails guide →

Next steps

Rails integration

Full Rails integration guide

Full-text search

Configure ranking and relevancy

Filtering

Add filters and facets

API reference

Explore all search parameters

Resources