Skip to main content

elasticsearch

Manage Elasticsearch clusters via the REST API. Use when querying, indexing, or managing Elasticsearch indices.

来源信息

仓库
fworks-tech/agenthood
最近来源活动
2026年9月16日 21:10
检测到的 SKILL.md 语言
英语
星标
3
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
elasticsearch
description
Manage Elasticsearch clusters via the REST API. Use when querying, indexing, or managing Elasticsearch indices.
license
MIT
metadata
{"category":"databases","dependencies":{"cli":"curl"},"config":[{"name":"ES_URL","label":"Elasticsearch URL","type":"string","required":false,"placeholder":"http://localhost:9200"}]}
# Elasticsearch Use `curl` to interact with Elasticsearch REST API. ## Common Operations ### Cluster - Health: `curl "${ES_URL:-http://localhost:9200}/_cluster/health"` - Nodes: `curl "${ES_URL:-http://localhost:9200}/_cat/nodes?v"` - Indices: `curl "${ES_URL:-http://localhost:9200}/_cat/indices?v"` ### Search - Basic search: `curl -X POST "${ES_URL}/<index>/_search" -H 'Content-Type: application/json' -d '{"query":{"match":{"field":"value"}}}'` - Count: `curl "${ES_URL}/<index>/_count"` ### Index Management - Create index: `curl -X PUT "${ES_URL}/<index>"` - Delete index: `curl -X DELETE "${ES_URL}/<index>"` - Index document: `curl -X POST "${ES_URL}/<index>/_doc" -H 'Content-Type: application/json' -d '{"field":"value"}'` ## Notes - Default port 9200 - Use `?pretty` for formatted JSON output - Use `/_cat/` endpoints for human-readable output
在 GitHub 查看