> ## Documentation Index
> Fetch the complete documentation index at: https://docs.civic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Elasticsearch

> Elasticsearch search engine — search indices, retrieve documents, and generate or execute ES|QL queries

## Overview

Elasticsearch is a distributed search and analytics engine. Connect it to Civic to let your AI agent explore indices, perform full-text and structured searches, and generate and run ES|QL queries against your cluster.

<Card title="Add to Civic" icon="plus" href="https://app.civic.com">
  Connect Elasticsearch at app.civic.com
</Card>

## Available Tools (7)

| Tool                               | Description                                             |                                               |
| ---------------------------------- | ------------------------------------------------------- | --------------------------------------------- |
| `platform_core_list_indices`       | List indices, aliases, and datastreams in the cluster   |                                               |
| `platform_core_index_explorer`     | Find relevant indices based on a natural language query |                                               |
| `platform_core_get_index_mapping`  | Retrieve field mappings for one or more indices         |                                               |
| `platform_core_get_document_by_id` | Retrieve the full source of a document by ID and index  |                                               |
| `platform_core_search`             | Search and analyze data using a natural language query  |                                               |
| `platform_core_generate_esql`      | Generate an ES                                          | QL query from a natural language description  |
| `platform_core_execute_esql`       | Execute an ES                                           | QL query and return results in tabular format |

***

## Guardrails

This server supports all [14 universal guardrails](/civic/concepts/guardrails). Server-specific guardrails are coming soon.
