AACFlow

Elasticsearch

Search, index, and manage data in Elasticsearch

Usage Instructions

Integrate Elasticsearch into workflows for powerful search, indexing, and data management. Supports document CRUD operations, advanced search queries, bulk operations, index management, and cluster monitoring. Works with both self-hosted and Elastic Cloud deployments.

Tools

Search documents in Elasticsearch using Query DSL. Returns matching documents with scores and metadata.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description
indexstringYesIndex name to search (e.g., "products", "logs-2024")
querystringNoQuery DSL as JSON string. Example: {"match":{"title":"search term"}} or {"bool":{"must":[...]}}
fromnumberNoNo description
sizenumberNoNo description
sortstringNoSort specification as JSON string. Example: [{"created_at":"desc"}] or [{"_score":"desc"},{"name":"asc"}]
sourceIncludesstringNoNo description
sourceExcludesstringNoNo description
trackTotalHitsbooleanNoNo description

Output

ParameterTypeDescription
tooknumberTime in milliseconds the search took
timed_outbooleanWhether the search timed out
hitsobjectSearch results with total count and matching documents
aggregationsjsonAggregation results if any

elasticsearch_index_document

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description
indexstringYesTarget index name (e.g., "products", "logs-2024")
documentIdstringNoDocument ID (e.g., "abc123", "user_456"). Auto-generated if not provided
documentstringYesNo description
refreshstringNoNo description

Output

ParameterTypeDescription
_indexstringIndex where the document was stored
_idstringDocument ID
_versionnumberDocument version
resultstringOperation result (created or updated)

elasticsearch_get_document

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description
indexstringYesIndex name (e.g., "products", "logs-2024")
documentIdstringYesDocument ID to retrieve (e.g., "abc123", "user_456")
sourceIncludesstringNoNo description
sourceExcludesstringNoNo description

Output

ParameterTypeDescription
_indexstringIndex name
_idstringDocument ID
_versionnumberDocument version
foundbooleanWhether the document was found
_sourcejsonDocument content

elasticsearch_update_document

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description
indexstringYesIndex name (e.g., "products", "logs-2024")
documentIdstringYesDocument ID to update (e.g., "abc123", "user_456")
documentstringYesNo description
retryOnConflictnumberNoNo description

Output

ParameterTypeDescription
_indexstringIndex name
_idstringDocument ID
_versionnumberNew document version
resultstringOperation result (updated or noop)

elasticsearch_delete_document

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description
indexstringYesIndex name (e.g., "products", "logs-2024")
documentIdstringYesDocument ID to delete (e.g., "abc123", "user_456")
refreshstringNoNo description

Output

ParameterTypeDescription
_indexstringIndex name
_idstringDocument ID
_versionnumberDocument version
resultstringOperation result (deleted or not_found)

elasticsearch_bulk

Perform multiple index, create, delete, or update operations in a single request for high performance.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description
indexstringNoDefault index for operations (e.g., "products", "logs-2024")
operationsstringYesBulk operations as NDJSON string. Each operation is two lines: action metadata and optional document. Example: {"index":{"_index":"products","_id":"1"}}\n{"name":"Widget"}\n
refreshstringNoNo description

Output

ParameterTypeDescription
tooknumberTime in milliseconds the bulk operation took
errorsbooleanWhether any operation had an error
itemsarrayResults for each operation

elasticsearch_count

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description
indexstringYesIndex name to count documents in (e.g., "products", "logs-2024")
querystringNoQuery DSL to filter documents (JSON string). Example: {"match":{"status":"active"}}

Output

ParameterTypeDescription
countnumberNumber of documents matching the query
_shardsobjectShard statistics

elasticsearch_create_index

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description
indexstringYesIndex name to create (e.g., "products", "logs-2024")
settingsstringNoNo description
mappingsstringNoNo description

Output

ParameterTypeDescription
acknowledgedbooleanWhether the request was acknowledged
shards_acknowledgedbooleanWhether the shards were acknowledged
indexstringCreated index name

elasticsearch_delete_index

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description
indexstringYesIndex name to delete (e.g., "products", "logs-2024")

Output

ParameterTypeDescription
acknowledgedbooleanWhether the deletion was acknowledged

elasticsearch_get_index

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description
indexstringYesIndex name to retrieve info for (e.g., "products", "logs-2024")

Output

ParameterTypeDescription
indexjsonIndex information including aliases, mappings, and settings

elasticsearch_cluster_health

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description
waitForStatusstringNoNo description
timeoutstringNoNo description

Output

ParameterTypeDescription
cluster_namestringName of the cluster
statusstringCluster health status: green, yellow, or red
number_of_nodesnumberTotal number of nodes in the cluster
number_of_data_nodesnumberNumber of data nodes
active_shardsnumberNumber of active shards
unassigned_shardsnumberNumber of unassigned shards

elasticsearch_cluster_stats

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description

Output

ParameterTypeDescription
cluster_namestringName of the cluster
statusstringCluster health status
nodesobjectNode statistics including count and versions
indicesobjectIndex statistics including document count and store size

elasticsearch_list_indices

List all indices in the Elasticsearch cluster with their health, status, and statistics.

Input

ParameterTypeRequiredDescription
deploymentTypestringYesNo description
hoststringNoNo description
cloudIdstringNoNo description
authMethodstringYesNo description
apiKeystringNoNo description
usernamestringNoNo description
passwordstringNoNo description

Output

ParameterTypeDescription
messagestringSummary message about the indices
indicesjsonArray of index information objects

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started