Command Palette

Search for a command to run...

Назад к скиллам
скилл № 74997

data-search-engine

Use when the user asks about Elasticsearch, OpenSearch or Solr: mappings and analyzers, BM25 relevance tuning, kNN hybrid search, aggregations, shard sizing…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить data-search-engine в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Data Search Engine

Purpose

Design and configure search engine clusters for full-text search, log analytics, and real-time data exploration with proper indexing, query design, and cluster management.

Agent Protocol

Trigger

Exact user phrases: "Elasticsearch", "OpenSearch", "Solr", "search engine", "full-text search", "inverted index", "indexing", "search analytics", "aggregation", "cluster management", "shard routing", "mapping", "analysis", "tokenization", "ILM", "index lifecycle".

Input Context

Before activating, verify:

  • Search platform (Elasticsearch, OpenSearch, Solr)
  • Data types (text, structured, geo, time-series)
  • Query patterns (full-text search, faceted navigation, aggregations, autocomplete)
  • Indexing volume (docs/sec, total doc count, index size)
  • Cluster topology (node count, hardware, cloud/on-prem)
  • Replication and HA requirements
  • Retention and lifecycle policies

Output Artifact

Search index mapping with analyzers, query templates, aggregation pipelines, and cluster configuration as JSON and YAML.

Response Format

// Index mapping with analyzers
// Search query template
// Aggregation pipeline
# Cluster configuration
# Index lifecycle policy
# Shard allocation rules

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.

Completion Criteria

  • Index mapping with proper field types, analyzers, and multi-fields
  • Search templates for common query patterns (match, bool, term, fuzzy)
  • Aggregation pipeline for faceted navigation and analytics
  • Cluster topology designed (node roles, shard count, replica count)
  • Index lifecycle policy configured (hot, warm, cold, delete phases)
  • Performance tuning applied (refresh interval, merge settings, thread pools)
  • OpenSearch-specific features considered if applicable

Max Response Length

300 lines of configuration and queries.

Workflow

Step 1: Index Mapping Design

Explicit mapping required — never use dynamic mapping for production. Define field types: text for full-text search with analyzer, keyword for exact match/aggregations/sorting, integer/long/double for numeric, date with format, geo_point for location, nested for arrays of objects (preserves independence), flattened for semi-structured metadata, object for simple JSON.

{
  "mappings": {
    "dynamic": "strict",
    "properties": {
      "title": { "type": "text", "analyzer": "english", "fields": { "keyword": { "type": "keyword" } } },
      "description": { "type": "text", "analyzer": "english" },
      "category": { "type": "keyword" },
      "price": { "type": "double" },
      "created_at": { "type": "date", "format": "yyyy-MM-dd'T'HH:mm:ss||epoch_millis" },
      "location": { "type": "geo_point" },
      "tags": { "type": "keyword" },
      "specs": { "type": "flattened" },
      "reviews": {
        "type": "nested",
        "properties": {
          "user": { "type": "keyword" },
          "rating": { "type": "byte" },
          "text": { "type": "text", "analyzer": "english" }
        }
      }
    }
  }
}

Step 2: Analysis and Tokenization

Character filters: HTML strip, pattern replace, mapping. Tokenizer: standard (grammar-based), whitespace, keyword (no split), ngram (autocomplete), edge_ngram (prefix autocomplete), uax_url_email (URLs kept whole). Token filters: lowercase, stop, synonym, stemmer, shingle (n-gram phrases), edge_ngram (for search-as-you-type). Custom analyzer combining these components.

{
  "settings": {
    "analysis": {
      "char_filter": {
        "html_strip": { "type": "html_strip" }
      },
      "tokenizer": {
        "autocomplete": { "type": "edge_ngram", "min_gram": 2, "max_gram": 20 }
      },
      "filter": {
        "synonyms": { "type": "synonym", "synonyms": ["laptop, notebook", "phone, smartphone, mobile"] }
      },
      "analyzer": {
        "product_search": {
          "type": "custom",
          "char_filter": ["html_strip"],
          "tokenizer": "standard",
          "filter": ["lowercase", "synonyms", "stop", "stemmer"]
        },
        "autocomplete": {
          "type": "custom",
          "tokenizer": "autocomplete",
          "filter": ["lowercase"]
        }
      }
    }
  }
}

Step 3: Search Queries

match: full-text with analysis (best for user search). match_phrase: exact phrase with slop. match_bool_prefix: last term as prefix. term: exact value for keyword fields. terms: multiple exact values. range: numeric/date range filters. exists: field presence. prefix: prefix match on keyword. wildcard: pattern matching (expensive). regexp: regex (very expensive). fuzzy: Levenshtein edit distance. bool: compound with must/should/filter/must_not.

{
  "query": {
    "bool": {
      "must": [
        { "match": { "title": { "query": "wireless headphones", "boost": 3 } } },
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/elasticsearch-architecture.md
  • references/modern-search-engines.md
  • references/search-aggregation.md
  • references/search-engine-distributed-architecture.md
  • references/search-engine-optimization.md
  • references/search-engine-ranking-relevance.md
  • references/search-operations.md
  • references/search-relevance-tuning.md

FAQ

Что делает скилл data-search-engine?

Use when the user asks about Elasticsearch, OpenSearch or Solr: mappings and analyzers, BM25 relevance tuning, kNN hybrid search, aggregations, shard sizing, ILM or cluster operations. Produces index mappings, queries and cluster settings. Not for app-level search features (use backend-search-patterns) or vector DB choice (use data-vector-databases).

Как установить скилл data-search-engine?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл data-search-engine запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить data-search-engine с