Skip to main content

elasticsearch

Query Elasticsearch — search, index management, aggregations, and cluster health.

Informations de source

Dépôt
ThinkfleetAI/thinkfleet-engine
Dernière activité de la source
1 février 2026 à 16:21
Langue détectée de SKILL.md
anglais
Étoiles
0
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
elasticsearch
description
Query Elasticsearch — search, index management, aggregations, and cluster health.
metadata
{"thinkfleetbot":{"emoji":"🔍","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# Elasticsearch Search, manage indexes, and run aggregations. ## Environment Variables - `ELASTICSEARCH_URL` - Elasticsearch URL (e.g. `https://localhost:9200`) ## Cluster health ```bash curl -s "$ELASTICSEARCH_URL/_cluster/health" | jq '{status, number_of_nodes, active_shards}' ``` ## List indexes ```bash curl -s "$ELASTICSEARCH_URL/_cat/indices?format=json&h=index,docs.count,store.size,health" | jq '.[]' ``` ## Search ```bash curl -s -X POST -H "Content-Type: application/json" \ "$ELASTICSEARCH_URL/INDEX_NAME/_search" \ -d '{"query":{"match":{"field":"search term"}},"size":10}' | jq '.hits.hits[] | {_id, _source}' ``` ## Index document ```bash curl -s -X POST -H "Content-Type: application/json" \ "$ELASTICSEARCH_URL/INDEX_NAME/_doc" \ -d '{"field":"value"}' | jq '{_id, result}' ``` ## Notes - Always confirm before indexing or deleting documents.
Voir sur GitHub