jyjeanne/ai-setup-forge/elasticsearch-integration

Claude Code and agent skill by jyjeanne/ai-setup-forge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

To implement full-text search, autocomplete, and complex filtering capabilities that standard SQL databases cannot handle efficiently. Use when: Search bars (e-commerce products, user finder); Log analysis; Fuzzy matching (handling typos).

Install

npx vskill@latest install jyjeanne/ai-setup-forge/elasticsearch-integration

SKILL.md

The same SKILL.md was published earlier as jyjeanne/ai-setup-forge/elasticsearch-integration.

Purpose

To implement full-text search, autocomplete, and complex filtering capabilities that standard SQL databases cannot handle efficiently.

When to Use

  • Search bars (e-commerce products, user finder).
  • Log analysis.
  • Fuzzy matching (handling typos).

Procedure

1. Connection
javascript
const { Client } = require('@elastic/elasticsearch');
const client = new Client({ node: 'http://localhost:9200' });
2. Indexing Data (Sync)

Keep Elasticsearch in sync with the primary DB.

  • On Save: When User is updated in SQL, update Elasticsearch.
javascript
await client.index({
index: 'users',
id: user.id,
document: {
name: user.name,
email: user.email,
bio: user.bio
}
});
3. Searching

Perform a multi-match fuzzy search.

javascript
const result = await client.search({
index: 'users',
query: {
multi_match: {
query: 'jonh doe', // typo intended
fields: ['name', 'bio'],
fuzziness: 'AUTO'
}
}
});
const hits = result.hits.hits.map(h => h._source);
4. Mappings

Define types explicitly for better performance.

javascript
await client.indices.create({
index: 'users',
mappings: {
properties: {
name: { type: 'text' }, // Full-text search
email: { type: 'keyword' }, // Exact match only
created_at: { type: 'date' }
}
}
});

Constraints

  • Sync Latency: Data might not be immediately available for search (near real-time).
  • Cost: Elasticsearch is resource-heavy (RAM/CPU).
  • Reindexing: Changing mappings often requires reindexing all data.

Expected Output

Fast, relevant search results with capabilities like highlighting, facets, and fuzzy matching.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jyjeanne/ai-setup-forge/elasticsearch-integration/badge)](https://verified-skill.com/skills/jyjeanne/ai-setup-forge/elasticsearch-integration)

Something wrong with this skill or its page? Tell us.