- Home
- Skills
- Data & Databases
- Elasticsearch Mapping Optimizer
Works with the AI Agents you already use
Elasticsearch Mapping Optimizer
Architect high-performance Elasticsearch and OpenSearch mappings with custom analyzers and optimized field datatypes.
$15
Elasticsearch Mapping Optimizer
Example session with this skill installed
I need an Elasticsearch mapping for a blog post index. I want full-text search on titles, exact filtering on tags, and instant autocomplete as the user types in the search bar.
- Read your context and instructions
- Compiled the elasticsearch mapping optimizer
I have designed a high-performance index mapping for your blog posts, featuring a custom edge_ngram analyzer for autocomplete and optimized field types for filtering and search.
Elasticsearch Index Mapping Configuration
{
"settings": {
"analysis": {
"filter": {
"autocomplete_filter": {
"type": "edge_ngram",
"min_gram": 1,
"max_gram": 20
}
},
"analyzer": {
"autocomplete": {
"type": "custom",
"tokenizer": "standard",
"filter": [
"lowercase",
"autocomplete_filter"
]
},
"autocomplete_search": {
"type": "custom",
"tokenizer": "standard",
"filter": [
"lowercase"
]
}
}
}
},
"mappings": {
"properties": {
"title": {
"type": "text",
"fields": {
"suggest": {
"type": "text",
"analyzer": "autocomplete",
"search_analyzer": "autocomplete_search"
}
}
},
"content": {
"type": "text",
"index": true
},
"tags": {
"type": "keyword"
},
"published_at": {
"type": "date"
},
"author_id": {
"type": "keyword"
}
}
}
}
Next steps
- PUT this JSON to your cluster using the
/_index_template/blog_postsendpoint. - Run a test query against
title.suggestto verify the autocomplete behavior. - If migrating data, use the
_reindexAPI to move documents from your old index to this new structure.
Connects securely to your tools. The creator never sees your data.
About this skill
Poorly designed Elasticsearch mappings lead to bloated disk usage, slow queries, and irrelevant search results. This skill provides the architectural expertise to design high-performance index mappings and custom search analyzers.
What it does
- Design field mappings by selecting between
keywordfor exact filtering andtextfor full-text search. - Configure custom analyzers using tokenizers and filters like
edge_ngramto enable instant autocomplete. - Optimize storage by selectively disabling
_sourceordoc_valueson large text fields. - Generate index templates providing valid JSON compliant with Elasticsearch 8+ specifications.
- Manage migrations by creating zero-downtime
_reindexAPI requests for schema updates.
How it works
- Analyze requirements to determine search intent and data structure.
- Define analyzers using custom tokenizers and lowercase filters.
- Map fields to specific datatypes based on search and aggregation needs.
- Export configuration as production-ready index template JSON.
Frameworks & tools
Specifically designed for Elasticsearch 8+ and OpenSearch environments. It outputs standard JSON mapping definitions and REST API commands.
Why this beats prompting it yourself
Generic prompts often overlook the subtle performance differences between text and keyword types or fail to properly configure complex n-gram tokenizers. This skill applies deterministic workflows to ensure every mapping is optimized for both speed and disk efficiency from the start.
Use cases
- Build a fast autocomplete feature using
edge_ngramanalyzers. - Migrate legacy indices to Elasticsearch 8+ with optimized data types.
- Reduce storage costs for high-volume logs by tuning
doc_values. - Create a multi-field search strategy for product catalogs.
Known limitations
Outputs are strictly restricted to the active project workspace. It does not perform live cluster connections or direct API execution; it provides the JSON and commands for manual or CI/CD application.
Restricted to Elasticsearch 8+ and OpenSearch specifications. Does not execute commands directly on live clusters; provides JSON and API requests for manual or automated deployment.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
Requires
Permissions
Target Use Cases: - Design an Elasticsearch mapping for product search. - Configure edge_ngram autocomplete analyzer in OpenSearch. - Optimize Elasticsearch index template for fast full-text search.