# Elasticsearch integration

> Search, index, and analyze documents in an Elasticsearch cluster using the REST API.

- Authentication: apiKey

## Tools (12)

- **Bulk Index / Update / Delete**: Perform many index, create, update, or delete operations in a single request using the NDJSON bulk format.
- **Count Documents**: Get the number of documents that match a query without returning their content.
- **Create Index**: Create a new index with explicit mappings, settings, and aliases.
- **Delete Document**: Delete a single document by its ID.
- **Delete Index**: Permanently delete one or more indices and all their documents.
- **Get Document**: Retrieve a single document by its ID from an index.
- **Get Index Schema (Mapping and Settings)**: Get the full mapping, settings, and aliases for a specific index.
- **Index (Create or Replace) Document**: Add a new document with a known ID, or auto-generate one. Replaces any existing document at that ID.
- **List Indices**: List all indices in the cluster (or those matching a pattern) with size, doc count, and health status.
- **Ping Cluster**: Verify the Elasticsearch cluster is reachable and the credentials work.
- **Search Documents (Query Index)**: Run a search request against one or more indices using the Query DSL.
- **Update Document**: Partially update an existing document with a doc merge or a scripted update.

## Related prompts

- [Refresh HubSpot health scores from product usage every night](https://www.generalinput.com/prompts/refresh-hubspot-health-scores-from-product-usage-every-night.md)
- [Auto-attach log evidence to new Linear bug tickets](https://www.generalinput.com/prompts/auto-attach-log-evidence-to-new-linear-bug-tickets.md)
- [Catch Elasticsearch error spikes before users do](https://www.generalinput.com/prompts/catch-elasticsearch-error-spikes-before-users-do.md)
- [Draft Zendesk replies from your Elasticsearch ticket history](https://www.generalinput.com/prompts/draft-zendesk-replies-from-your-elasticsearch-ticket-history.md)
- [Weekly zero-result search digest in Slack and Sheets](https://www.generalinput.com/prompts/weekly-zero-result-search-digest-in-slack-and-sheets.md)

Connect Elasticsearch in General Input: https://www.generalinput.com/apps/elasticsearch