search-engine-setup

Featured

Set up and optimize search engines for applications. Use when someone asks to "add search to my app", "set up Elasticsearch", "configure Algolia", "fix search relevance", "add autocomplete", "fuzzy search", or "faceted filtering". Covers index design, data sync, search API, autocomplete, relevance tuning, and query analysis.

Data & Documents 213 stars 34 forks Updated 1 weeks ago Apache-2.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
78
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Search Engine Setup ## Overview This skill helps AI agents implement production-quality search in applications. It covers index design with custom analyzers, database-to-index sync pipelines, search APIs with faceting and highlights, autocomplete, and relevance tuning based on real query data. ## Instructions ### Index Design (Elasticsearch) 1. Map source database columns to Elasticsearch field types: - Text columns users search → `text` with custom analyzer - Enum/category columns for filtering → `keyword` - Numeric columns for range filters → `integer`, `float` - Boolean flags → `boolean` - Dates → `date` - Fields for autocomplete → `completion` 2. Custom analyzer template for product/content search: ```json { "analyzer": { "content_analyzer": { "tokenizer": "standard", "filter": ["lowercase", "synonym_filter", "edge_ngram_filter"] } }, "filter": { "synonym_filter": { "type": "synonym", "synonyms_path": "synonyms.txt" }, "edge_ngram_filter": { "type": "edge_ngram", "min_gram": 3, "max_gram": 15 } } } ``` 3. Boost fields by search importance: title/name (3-5x), tags (2x), description (1x). 4. Always add a `suggest` field of type `completion` for typeahead. ### Index Design (Algolia) 1. Set `searchableAttributes` in priority order: `["name", "category", "description"]`. 2. Set `attributesForFaceting`: prefix filterable attributes with `filterOnly()` for non-displayed fa...

Details

Author
TerminalSkills
Repository
TerminalSkills/skills
Created
9 months ago
Last Updated
1 weeks ago
Language
JavaScript
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

search-engine-setup

Set up and optimize search engines for applications. Use when someone asks to "add search to my app", "set up Elasticsearch", "configure Algolia", "fix search relevance", "add autocomplete", "fuzzy search", or "faceted filtering". Covers index design, data sync, search API, autocomplete, relevance tuning, and query analysis.

0 Updated 7 months ago
eliferjunior
AI & Automation Featured

algolia-core-workflow-a

Implement Algolia search with filters, facets, highlighting, and pagination. The primary money-path workflow: search records, apply filters, display results. Trigger: "algolia search", "search with algolia", "algolia filters", "algolia facets", "algolia search implementation".

2,926 Updated yesterday
jeremylongshore
AI & Automation Listed

search-infra

Design and operate full-text and vector search infrastructure — inverted-index engines (Elasticsearch/OpenSearch, Meilisearch, Typesense), analyzers and tokenization, relevance tuning (BM25, boosting, synonyms), faceting, and semantic/vector search (embeddings, ANN indexes, hybrid retrieval). Use when adding a search box, choosing a search engine, designing an index mapping and analyzer chain, tuning relevance, building autocomplete, deciding keyword vs vector vs hybrid retrieval, or keeping a search index in sync with the source database. Boundary vs db-design — db-design owns the durable transactional source of truth (normalized PostgreSQL schema, known-key indexes, migrations, ACID); this skill owns the derived denormalized search index built FROM that source for ranked free-text/semantic retrieval, where the engine is eventually-consistent, rebuildable, and never the system of record. Defers cache concerns to redis and RAG prompt assembly to llm-patterns.

7 Updated today
kouroshez