Skip to content
cccskills
FreePublished on GitHub

elasticsearch-py

Guide the official Elasticsearch Python client for cluster connections, generated APIs, async code, bulk ingestion, query DSL, ES|QL, optional integrations, and runtime troubleshooting.

The English summary is being prepared. Showing the original description.

See how to install

Files included (25)

  • SKILL.md3.9 KB
  • references/repo-provenance.md1.1 KB
  • references/repo-routing-metadata.json335 B
  • references/troubleshooting.md2.0 KB
  • sub-skills/client-operations/references/api-reference.md3.0 KB
  • sub-skills/client-operations/references/connection-recipes.md2.5 KB
  • sub-skills/client-operations/references/troubleshooting.md2.4 KB
  • sub-skills/client-operations/SKILL.md3.4 KB
  • sub-skills/dsl-search/references/api-reference.md1.9 KB
  • sub-skills/dsl-search/references/data-and-mapping.md1.4 KB
  • sub-skills/dsl-search/references/troubleshooting.md2.1 KB
  • sub-skills/dsl-search/references/workflows.md2.1 KB
  • sub-skills/dsl-search/scripts/dsl_query_smoke.py1.1 KB
  • sub-skills/dsl-search/SKILL.md2.4 KB
  • sub-skills/esql-query-builder/references/api-reference.md1.5 KB
  • sub-skills/esql-query-builder/references/pandas-integration.md960 B
  • sub-skills/esql-query-builder/references/troubleshooting.md1.8 KB
  • sub-skills/esql-query-builder/references/workflows.md1.4 KB
  • sub-skills/esql-query-builder/scripts/esql_query_smoke.py1011 B
  • sub-skills/esql-query-builder/SKILL.md2.0 KB
  • sub-skills/helpers-ingest/references/api-reference.md2.1 KB
  • sub-skills/helpers-ingest/references/troubleshooting.md2.2 KB
  • sub-skills/helpers-ingest/references/workflows.md2.0 KB
  • sub-skills/helpers-ingest/scripts/bulk_actions_smoke.py1.6 KB
  • sub-skills/helpers-ingest/SKILL.md2.9 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Elasticsearch Python client

Use this skill when a task uses the official elasticsearch Python package or asks for Elasticsearch connections, indexing/search APIs, async client code, bulk helpers, the high-level DSL, ES|QL, vector-store helpers, or client troubleshooting. The source snapshot is package version 9.5.0; read repo-provenance.md before deciding whether the skill is stale for a different client checkout or version.

Route the request

  • Connect, authenticate, configure transport, use generated API namespaces, or manage sync/async lifecycle: read client-operations.
  • Bulk index/update/delete, streaming, scan, reindex, or helper failures: read helpers-ingest.
  • Q, Search, aggregations, mappings, Document, typed persistence, or high-level query composition: read dsl-search.
  • ES|QL source/processing builders, safe parameters, or tabular results: read esql-query-builder.
  • Shared install, serialization, version, or security failures: read troubleshooting.md in addition to the route.

For a cross-cutting task, load client-operations first, then the workflow route; keep the client/auth configuration separate from request-body construction.

Install and smoke check

The package supports Python 3.10+. Install only the extras used by the task:

python -m pip install elasticsearch
python -m pip install "elasticsearch[async]"       # aiohttp async transport
python -m pip install "elasticsearch[requests]"    # requests transport
python -m pip install "elasticsearch[orjson]"      # optional serializer
python -m pip install "elasticsearch[pyarrow]"     # Arrow/ES|QL workflows
python -m pip install "elasticsearch[vectorstore_mmr]"  # MMR helper support
from elasticsearch import AsyncElasticsearch, Elasticsearch
print(Elasticsearch, AsyncElasticsearch)

An import proves package availability only. client.info() is a live service probe and requires a reachable endpoint, credentials, and correct TLS.

Guardrails

  • Keep API keys, passwords, bearer tokens, CA files, and cluster URLs in runtime configuration or environment variables, not in generated guidance or logs.
  • Prefer TLS verification with ca_certs or a supported fingerprint. Do not use verify_certs=False as a production solution.
  • Generated client modules are specification output; do not edit files under elasticsearch/_sync/client/ or elasticsearch/_async/client/ to change an API. Upstream API changes belong in the Elasticsearch specification project.
  • A bulk HTTP response can contain item failures. Inspect helper results and use bounded retries only for operations whose retry semantics are understood.
  • A rendered DSL/ES|QL request is not server validation. Check target mappings, server version, privileges, response shape, and partial-result flags.
  • Close clients: client.close() for sync and await client.close() for async, preferably with an async context manager.

Verification entry points

Use the bundled offline checks when no cluster is available:

  • python sub-skills/helpers-ingest/scripts/bulk_actions_smoke.py
  • python sub-skills/dsl-search/scripts/dsl_query_smoke.py
  • python sub-skills/esql-query-builder/scripts/esql_query_smoke.py

Read routing metadata only when the managed repo-skill router is being rebuilt; it is structured metadata, not a user workflow reference.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

3ddfa

Free

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

acme

Free

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill339Updated Sep 3, 2026

See all skills by VectorSpaceLab

Report a problem with this skill