# Node-Red + Elasticsearch

**URL:** <https://discourse.nodered.org/t/node-red-elasticsearch/7093>\
**Category:** General\
**Created:** [21 January 2019 11:22 UTC](https://discourse.nodered.org/t/node-red-elasticsearch/7093 "2019-01-21T11:22:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin6538](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Robin6538](https://discourse.nodered.org/u/Robin6538)\
**Post date:** [21 January 2019 11:22 UTC](https://discourse.nodered.org/t/node-red-elasticsearch/7093/1 "2019-01-21T11:22:08Z")

</div>

Hello Everyone,

I just started to work on node-red and trying to create a flow which will get the documents from elasticsearch. After filling all the details in the elastic node, getting an error 'ReferenceError: documentType is not defined'.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/db013560d227e1e4423cf8163bff93119cc38f33.png)

Can you please help me for this issue?

Thanks.
