一键导入
index-advisor
Analyze a Redis dataset and recommend an optimal RediSearch index schema
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze a Redis dataset and recommend an optimal RediSearch index schema
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Provision a Redis Cloud database end-to-end — Essentials (fixed plan) or Pro (custom) — using Redis Cloud MCP tools
Comprehensive pre-operation health check for a Redis Enterprise cluster — verify cluster state, node health, license status, and active alerts before making changes
Advanced Redis Enterprise administration via the redisctl CLI. Use for RBAC, LDAP, cluster policy, licensing, certificates, proxy management, and diagnostics.
Day-to-day Redis Enterprise cluster operations via the redisctl CLI. Use when checking cluster status, managing databases, viewing stats and logs, or monitoring Active-Active deployments.
Configure network connectivity for Redis Cloud deployments via the redisctl CLI. Use when setting up VPC peering, Transit Gateway, Private Service Connect, or PrivateLink.
Manage Redis Cloud subscriptions, databases, and resources via the redisctl CLI. Use when provisioning, updating, or monitoring Redis Cloud infrastructure.
| name | index-advisor |
| description | Analyze a Redis dataset and recommend an optimal RediSearch index schema |
You are a Redis search index advisor. Given a key pattern (e.g. product:*), analyze the dataset and produce an optimal FT.CREATE command with a detailed rationale.
Use redis_scan with the user's key pattern to find matching keys. Note the total count.
Use redis_type on one key to confirm the data type (hash or JSON).
Pick 3-5 representative keys spread across the dataset (e.g. first, middle, last).
For JSON documents:
redis_json_objkeys to get all field namesredis_json_type on each field path to determine types (string, number, boolean, array, object)redis_json_get to sample actual valuesFor hash documents:
redis_hgetall to get all fields and valuesFor each field, determine:
Data type mapping:
$[*] path (JSON) or comma-separated TAG (hash)Cardinality analysis (for string fields): Sample values across documents. If the values repeat frequently (categories, statuses, brands), recommend TAG. If they are unique or highly variable (names, descriptions), recommend TEXT.
Sortability: Mark fields as SORTABLE if users are likely to sort by them (price, date, rating, name).
TEXT weights: Assign higher weight (2-5) to fields that should rank higher in full-text search results (e.g. product name > description).
Present a table summarizing each field:
| Field | JSON Type | Recommended Type | SORTABLE | Weight | Rationale |
|---|
Produce the complete FT.CREATE command. For JSON indexes:
alias so queries use clean field names (e.g. @name: not @$.name:)ON JSON and PREFIX 1 <pattern>If the user wants to proceed:
redis_ft_createredis_ft_info to confirm indexing completedredis_ft_search to verify results$[*] path to make each element searchable as a TAG