Skip to content
Back to skills

Search Setup

ASecurity

Search for Educabot apps (Go/TS/React): Meilisearch, Typesense, Elasticsearch, Postgres FTS + pg_trgm, indexing pipeline, faceting, multi-tenant, multilingual es/pt.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 14, 2026
devopsgobashreactapifrontendbackend

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add SebastianLuser/claude-code-arcane --skill search-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Search Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Search Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebastianluser-search-setup/badge)](https://www.skillsdirectory.com/skills/sebastianluser-search-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: search-setup
description: "Search for Educabot apps (Go/TS/React): Meilisearch, Typesense, Elasticsearch, Postgres FTS + pg_trgm, indexing pipeline, faceting, multi-tenant, multilingual es/pt."
category: "backend"
argument-hint: "[provider: meilisearch|typesense|elastic|algolia|pg-fts]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Bash, Write, Edit, Task
---
# search-setup — Search

**Educabot default:** Meilisearch for the catalog + Postgres FTS for transactional searches. Do not start with Elasticsearch.

## Engine Decision

| Engine | When | Pros | Cons |
|--------|--------|------|------|
| **Postgres FTS + pg_trgm** | <10k docs, you already have PG | Zero extra infra, transactional | Crude relevance, no native facets |
| **Meilisearch** | **Catalog default** | Typo-tolerant, facets, fast, OSS | Horizontal scaling is not trivial |
| **Typesense** | Alternative to Meili with HA | Native clustering, good API | Smaller community |
| **Elasticsearch/OpenSearch** | >10M docs, analytics | Ecosystem, aggregations | Heavy ops, JVM, expensive |
| **Algolia** | SaaS, time-to-market | Zero ops, InstantSearch | $$$, vendor lock-in |

> → Read references/engine-details.md for Postgres FTS and Meilisearch configuration specifics

> → Read references/indexing-pipeline.md for outbox pattern, async indexing, and reindex alias swap

## Multi-tenant

| Strategy | When | Pro | Con |
|------------|--------|-----|--------|
| Filter by `tenantId` | **Default** (<100 tenants) | Cheap, single reindex | A large tenant degrades a small one |
| Index per tenant | Isolation required | Per-tenant tuning | More ops, duplicated synonyms |

Meili tenant tokens: scoped with a forced `tenantId` filter, TTL 1h.

## Frontend Exposure

- **Default:** backend proxy endpoint (`/api/search`) — more control, observability, rate limit
- Alternative: tenant token straight to Meili (less latency, less control)
- Rate limit on the search endpoint. Input sanitization: never pass user input straight to `filter:`

## Autocomplete

- Debounce ≥150ms, `limit: 5-10`, `attributesToHighlight` to highlight the match
- Frontend cache (last 20 queries) for instant back/forward

> → Read references/observability.md for search metrics, latency alerting, zero-result tracking

> → Read references/anti-patterns-checklist.md for anti-patterns and pre-deployment checklist

Files in this skill

  • SKILL.md2.3 KB
  • references/anti-patterns-checklist.md1 KB
  • references/engine-details.md702 B
  • references/indexing-pipeline.md533 B
  • references/observability.md227 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.