Query and index Elasticsearch with proper mappings, analyzers, and search patterns.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install elasticsearch或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install elasticsearch⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/elasticsearch/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Elasticsearch description: Query and index Elasticsearch with proper mappings, analyzers, and search patterns. metadata: {"clawdbot":{"emoji":"🔍","requires":{"anyBins":["curl"]},"os":["linux","darwin","win32"]}} ---
text for full-text search, keyword for exact match/aggregations—using text for IDs breaks filtersdynamic: "strict" to reject unmapped fields—catches typos in field namestext is analyzed (tokenized, lowercased)—"Quick Brown" matches search for "quick"keyword is exact bytes—"Quick Brown" only matches exactly "Quick Brown""title": { "type": "text", "fields": { "raw": { "type": "keyword" }}}title.raw, search on titlebool.must for scoring, bool.filter for filtering without scoringstandard analyzer lowercases and removes punctuation—fine for most textkeyword analyzer keeps exact string—use for codes, SKUs, emailsenglish) stem words—"running" matches "run"_analyze endpoint before indexing—surprises in production hurt{"tags": [{"key":"a","val":1}, {"key":"b","val":2}]} becomes tags.key: [a,b], tags.val: [1,2]key=a AND val=2 incorrectly matches abovenested type to preserve object boundaries—requires nested query wrapperfrom + size limited to 10,000 hits—deep pagination failssearch_after for deep pagination—requires consistent sort, typically _id_bulk API, 5-15MB batchesrefresh=false during bulk loads—refresh after batch completes_source: false with stored_fields if you don't need full document—reduces I/Ofilter for cacheable conditions—Elasticsearch caches filter results*term)—forces full scan; use reverse field for suffix searchprofile: true shows query execution breakdown—find slow clausesterms agg needs keyword field—text fields fail or give garbagesize: 10 on terms agg—increase to get all buckets, or use compositenested wrapper—matches nested query pattern_cluster/settingsretry_on_conflict or use optimistic lockingindex.mapping.total_fields.limit and use strict mapping安装 Elasticsearch 后,可以对 AI 说这些话来触发它
Help me get started with Elasticsearch
Explains what Elasticsearch does, walks through the setup, and runs a quick demo based on your current project
Use Elasticsearch to query and index Elasticsearch with proper mappings, analyzers, and ...
Invokes Elasticsearch with the right parameters and returns the result directly in the conversation
What can I do with Elasticsearch in my data & analytics workflow?
Lists the top use cases for Elasticsearch, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/elasticsearch/ 目录(个人级,所有项目可用),或 .claude/skills/elasticsearch/(项目级)。重启 AI 客户端后,用 /elasticsearch 主动调用,或让 AI 根据上下文自动发现并使用。
Elasticsearch 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Elasticsearch 可免费安装使用。请查阅仓库了解许可证信息。
Query and index Elasticsearch with proper mappings, analyzers, and search patterns.
Elasticsearch 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Elasticsearch
Identifies repetitive steps in your workflow and sets up Elasticsearch to handle them automatically