Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Elasticsearch Mapping Optimizer

    1

    Architect high-performance Elasticsearch and OpenSearch mappings with custom analyzers and optimized field datatypes.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Elasticsearch Mapping Optimizer

    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

    1. PUT this JSON to your cluster using the /_index_template/blog_posts endpoint.
    2. Run a test query against title.suggest to verify the autocomplete behavior.
    3. If migrating data, use the _reindex API 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 keyword for exact filtering and text for full-text search.
    • Configure custom analyzers using tokenizers and filters like edge_ngram to enable instant autocomplete.
    • Optimize storage by selectively disabling _source or doc_values on large text fields.
    • Generate index templates providing valid JSON compliant with Elasticsearch 8+ specifications.
    • Manage migrations by creating zero-downtime _reindex API requests for schema updates.

    How it works

    1. Analyze requirements to determine search intent and data structure.
    2. Define analyzers using custom tokenizers and lowercase filters.
    3. Map fields to specific datatypes based on search and aggregation needs.
    4. 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_ngram analyzers.
    • 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    File System Read/Write (strictly scoped to current project workspace `./`). Zero global installation or elevated privileges required.

    Permissions

    Read Files
    Network Access

    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.

    Listed2 days ago

    What's inside

    Frequently Asked Questions

    This skill helps you avoid common pitfalls like high disk usage and slow query latency by architecting precise field mappings, selecting optimal datatypes, and building custom tokenizers like edge_ngrams for advanced search features.

    The skill is fully compatible with any AI agent that supports code generation and text output, and it is specifically tuned for the API requirements of Elasticsearch 8+ and OpenSearch.

    You will receive a specialized AI agent workflow designed to generate production-ready index templates, custom analyzer configurations, and zero-downtime reindexing scripts in standard JSON format.

    No, for security reasons the skill does not connect directly to your cluster; it generates the exact JSON and REST API commands you need to apply via your own CLI or CI/CD pipeline.

    Setup is instant upon purchase; you simply provide your data schema or search requirements to the agent, and it will begin generating optimized mapping definitions within your workspace.

    Unlike general prompts, this skill uses deterministic logic to handle complex configurations like multi-fields and doc_values optimization, ensuring your mappings are architecturally sound rather than just syntactically correct.

    New in Data & Databases