OpenSearch icon

OpenSearch

Consume the OpenSearch API

Document → Get

AI-generated

Summary

Retrieve one document by its ID from the specified OpenSearch index. By default, return a simplified object containing the document ID and source fields; disable Simplify to return the raw OpenSearch response.

Inputs

  • Index ID (required) — ID of the index containing the document.
  • Document ID (required) — ID of the document to retrieve.
  • Simplify — Defaults to true. When enabled, outputs _id and the document’s _source fields; when disabled, outputs the raw response.
  • Options — Optional request parameters: Source Excludes and Source Includes filter source fields, and Stored Fields requests stored index fields instead of _source. When any option is set, the implementation also sets _source=true on the request.

Output shape

A single n8n item containing the retrieved document data.

With Simplify enabled, the item’s JSON contains _id and spread _source fields. With Simplify disabled, it contains the raw OpenSearch Get response. The operation runs once per input item.

Links

Discussion