diff --git a/packages/nodes-base/nodes/Elasticsearch/Elasticsearch.node.ts b/packages/nodes-base/nodes/Elasticsearch/Elasticsearch.node.ts index e28ff8cb0b..6ef02e518d 100644 --- a/packages/nodes-base/nodes/Elasticsearch/Elasticsearch.node.ts +++ b/packages/nodes-base/nodes/Elasticsearch/Elasticsearch.node.ts @@ -133,7 +133,10 @@ export class Elasticsearch implements INodeType { const simple = this.getNodeParameter('simple', i) as IDataObject; if (simple) { - responseData = responseData._source; + responseData = { + _id: responseData._id, + ...responseData._source, + }; } } else if (operation === 'getAll') {