Skip to content
Back to skills

Search Indexing

ASecurity

Add search with Postgres full-text, Elasticsearch/OpenSearch, Meilisearch or Typesense, kept in sync with the source of truth

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsdatabase

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill search-indexing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Search Indexing?

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

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

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
---
description: Add search with Postgres full-text, Elasticsearch/OpenSearch, Meilisearch or Typesense, kept in sync with the source of truth
profile: full
tags: search, elasticsearch, database
---

# Search indexing

Start with the simplest engine that meets relevance needs; Postgres full-text often suffices.

## Index design
- Index only fields you search, filter or sort on; map types explicitly (keyword vs text).
- Analyzers match the language; test relevance with real queries.

## Sync
- The database is the source of truth; update the index from change events or an outbox, never only from the request path.
- Support a full reindex into a new index plus alias swap, with zero downtime.

## Safety
- Filter by tenant and permissions inside the search query, not after.
- Escape or use structured queries; never pass raw user input as query DSL.

## Verify
A test creates, updates and deletes a record and asserts search results follow; a reindex script runs on a fresh index.

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 ai-agents →

Comments

Loading comments…

Newsletter

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