Skip to main content
Version: 3.2

OpenSearch Nodes

Search OpenSearch or Amazon OpenSearch Service with Query DSL, and index, fetch or delete documents by ID, from a pipeline.

Operations
Search · Index · Get · Delete
Output
Search hits, total hits, and the raw response

OpenSearch is the open-source search and analytics engine, self-hosted or run as Amazon OpenSearch Service. MaestroHub provides four nodes for searching, indexing, retrieving and deleting documents. They deliver the same results as the Elasticsearch nodes.

Configuration Quick Reference​

FieldWhat you chooseDetails
ParametersConnection, Function, Function Parameters, Timeout OverrideSelect the connection profile, function, configure function parameters with expression support, and optionally override timeout.
SettingsDescription, Timeout (seconds), Retry on Timeout, Retry on Fail, On ErrorNode description, maximum execution time, retry behavior on timeout or failure, and error handling strategy. All execution settings default to pipeline-level values.
OpenSearch Search node configurationOpenSearch Search node configuration

OpenSearch Search Node

OpenSearch Search Node​

Run a Query DSL search with pagination.

Output Schema:

{
"result": {
"hits": [
{
"_index": "quality-events",
"_id": "abc123",
"_score": 1.5,
"_source": { /* document fields */ }
}
],
"totalHits": 150,
"raw": { /* the whole search response — aggregations included */ }
}
}

hits is the page of matching documents as OpenSearch returns them; totalHits is the total number of matches, which can exceed the page when size caps it. Aggregations and everything else the search returned are under raw.


OpenSearch Index node configurationOpenSearch Index node configuration

OpenSearch Index Node

OpenSearch Index Node​

Create a document, or overwrite the one with the same ID.

Output Schema:

{
"result": {
"_index": "quality-events",
"_id": "insp-001",
"result": "created",
"version": 1
}
}

result is created for a new document, updated when the ID already existed, or already_exists when a buffered resend found its document already written (then version is not present). version is the document's version after the write.


OpenSearch Get node configurationOpenSearch Get node configuration

OpenSearch Get Node

OpenSearch Get Node​

Retrieve a single document by its ID.

Output Schema:

{
"result": {
"_index": "device-registry",
"_id": "device-001",
"found": true,
"version": 3,
"_source": { "name": "Temperature Sensor", "line": "line3" }
}
}

When the document doesn't exist, found is false and only _id accompanies it; _index, _source and version are not present.


OpenSearch Delete node configurationOpenSearch Delete node configuration

OpenSearch Delete Node

OpenSearch Delete Node​

Remove a document by its ID.

Output Schema:

{
"result": {
"_index": "queue-items",
"_id": "item-789",
"result": "deleted"
}
}

result is deleted if the document existed and was removed, or not_found if it didn't, in which case _index is not present.


Output​

Every OpenSearch node delivers its data under result, and execution facts (success, functionId, durationMs, timestamp) under _metadata:

NodeExpressionDescription
Search$node["Name"].result.hitsThe matching documents, each with _index, _id, _score and the document under _source. $node["Name"].result.hits[0]._source.<field> reads a value
$node["Name"].result.totalHitsThe total number of matches; present unless the query sets track_total_hits to false
$node["Name"].result.rawThe whole search response; $node["Name"].result.raw.aggregations reads an aggregation
Index$node["Name"].result._id, $node["Name"].result._indexThe document's id (given, the write key, or generated) and the index written to
$node["Name"].result.resultcreated, updated, or already_exists
$node["Name"].result.versionThe document's version after the write
Get$node["Name"].result.foundWhether the document exists
$node["Name"].result._sourceThe document, only when found, with _index and version
Delete$node["Name"].result.resultdeleted when the document existed, not_found when it did not

The call's own facts ride along under _metadata next to the four every connected node carries: $node["Name"]._metadata.index on every node, $node["Name"]._metadata.hitCount after a Search, $node["Name"]._metadata.documentId after an Index, Get or Delete, and _metadata.method, _metadata.connectionId and _metadata.protocol naming the operation and the connection it ran over.