用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill elasticsearch命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| 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