---
name: "meilisearch-typo-tolerant-search"
description: "Implement instant, typo-tolerant search-as-you-type in frontend and backend applications."
metadata:
  author: "Meilisearch"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "setup meilisearch index"
  - "configure meilisearch ranking rules"
  - "generate meilisearch tenant token"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Meilisearch Fast Typo-Tolerant Fulltext Search

Configures Meilisearch: setting up searchable, filterable, and sortable attributes, custom ranking rules (words, typo, proximity, attribute, exactness), synonym dictionaries, and multi-tenant search keys.

## When to Invoke
Invoke this skill whenever you need to:
- setup meilisearch index
- configure meilisearch ranking rules
- generate meilisearch tenant token

## Execution SOP & Rules
1. Initialize Meilisearch client: const client = new Meilisearch({ host: 'http://localhost:7700' }).
2. Update settings: await index.updateSettings({ filterableAttributes: ['genre', 'rating'], sortableAttributes: ['release_date'] }).
3. Add documents in batches: await index.addDocuments(movies, { primaryKey: 'id' }).
4. Search with instant highlighting: await index.search('batman', { attributesToHighlight: ['*'] }).

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
