backend-search-patterns
Use when the user asks about full-text search, Elasticsearch or OpenSearch mappings, Meilisearch, Typesense, Algolia, relevance tuning, autocomplete or…
от j4flmao★ 47 звёзд на GitHub
Установить backend-search-patterns в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Backend Search Patterns
Purpose
Design search architecture with indexing strategy, query design, and relevance tuning.
Agent Protocol
Trigger
Exact user phrases: "search", "Elasticsearch", "Meilisearch", "Algolia", "full-text search", "search index", "search query", "faceted search", "autocomplete", "search ranking", "search relevance", "indexing strategy", "search aggregation", "synonym search", "fuzzy search".
Input Context
Before activating, verify:
- Data volume (documents count, average document size, growth rate)
- Search requirements (full-text, faceted navigation, geo-spatial, autocomplete)
- Update frequency (real-time CDC, hourly batch, daily reindex)
- Consistency requirements (eventual consistency acceptable, or need read-your-writes)
Output Artifact
Search architecture design as formatted text.
Response Format
# Index mapping with analyzers
# Indexing strategy (CDC/batch/webhook)
# Query DSL template
# Aggregation patterns
# Cluster config and resource limits
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- Search provider selected based on requirements
- Index mapping defined with field types, analyzers, and doc values
- Indexing strategy chosen (CDC/batch/webhook) with sync mechanism
- Search query patterns designed (full-text, faceted, autocomplete, geo)
- Relevance tuning configured (BM25, field boosting, function scoring)
- Operational concerns addressed (aliases, shards, snapshots, monitoring)
Max Response Length
300 lines of mapping, queries, and configuration.
Decision Tree
Which Search Engine?
What kind of search do you need?
├── Complex search: aggregations, geo, custom scoring, multi-language
│ └── Elasticsearch / OpenSearch — full control, steep learning curve
├── Simple typo-tolerant full-text search, instant setup
│ └── Meilisearch — excellent out-of-box relevance, minimal config
├── Managed, no ops, global edge network, per-query pricing
│ └── Algolia — fastest time-to-value for e-commerce and content
├── Fast, simpler alternative to Elasticsearch, lower resource usage
│ └── Typesense — REST-first, good relevance, low memory footprint
└── Already using AWS ecosystem, simple search needs
└── OpenSearch Service — managed, familiar if coming from ES 6.x
How to Index?
How fresh does search data need to be?
├── Real-time (seconds), high throughput
│ └── CDC (Debezium) → Kafka → search consumer
├── Near real-time (seconds-minutes), moderate throughput
│ └── Webhook / event-driven index updates
├── Near real-time, strong consistency (read-your-writes)
│ └── Dual-write: DB + search in same operation (with outbox pattern)
├── Batch (hours-days), small dataset, infrequent changes
│ └── Periodic full reindex — truncate and retransform all data
└── I don't know yet
└── Start with batch reindex daily. Add CDC when freshness requirement emerges
Workflow
Step 1: Search Provider Selection
| Provider | Type | Hosting | Query Complexity | Relevance | Performance | Cost |
|---|---|---|---|---|---|---|
| Elasticsearch | Self-managed/SaaS | Cloud/on-prem | Full DSL | Custom BM25 | High | Infra cost |
| OpenSearch | Self-managed/SaaS | Cloud/on-prem | Full DSL | Custom BM25 | High | Infra cost |
| Meilisearch | Self-managed/SaaS | Cloud/on-prem | Simple REST | High OOTB | Very high | Open source |
| Typesense | Self-managed/SaaS | Cloud/on-prem | Simple REST | High OOTB | Very high | Open source |
| Algolia | SaaS | Managed | Simple REST | Very high OOTB | Edge-cached | Per search op |
Elasticsearch for complex search with aggregations, geo, custom scoring. Meilisearch for simple typo-tolerant search, instant setup. Algolia for managed high relevance out-of-box, global CDN, no ops. Typesense as a faster simpler alternative to Elasticsearch. OpenSearch as the open-source fork of Elasticsearch (after license change).
Step 2: Index Mapping
Define every field with explicit type: keyword for exact match/filtering/sorting, text with analyzer for full-text, integer/float/date for range queries, geo_point for geo-spatial, boolean for flags. Set language-specific analyzers per field. Use doc_values: true on fields used for aggregations and sorting (critical for performance). nested type for arrays of objects (maintains document boundaries). enabled: false on fields not searched (saves index space).
{
"settings": {
"number_of_shards": 3,
"number_of_replicas": 2,
"refresh_interval": "30s",
"analysis": {
"analyzer": {
"autocomplete": { "type": "custom", "tokenizer": "edge_ngram", "filter": ["lowercase"] },
"english_custom": { "type": "standard", "stopwords": "_english_", "filter": ["lo
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/indexing-strategies.md
- references/search-architecture.md
- references/search-engines.md
- references/search-faceted-navigation.md
- references/search-implementation.md
- references/search-optimization.md
- references/search-performance.md
- references/search-synonyms.md
FAQ
Что делает скилл backend-search-patterns?
Use when the user asks about full-text search, Elasticsearch or OpenSearch mappings, Meilisearch, Typesense, Algolia, relevance tuning, autocomplete or zero-downtime reindex with aliases. Produces index mappings, sync and query code. Not for vector search (use data-vector-databases) or engine internals (use data-search-engine).
Как установить скилл backend-search-patterns?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл backend-search-patterns запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…