# Can an external Client directly query a data node?

**URL:** <https://discuss.elastic.co/t/can-an-external-client-directly-query-a-data-node/199854>\
**Category:** Elasticsearch\
**Created:** [September 17, 2019, 3:58pm UTC](https://discuss.elastic.co/t/can-an-external-client-directly-query-a-data-node/199854 "2019-09-17T15:58:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashyo98](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ashyo98](https://discuss.elastic.co/u/ashyo98)\
**Post date:** [September 17, 2019, 3:58pm UTC](https://discuss.elastic.co/t/can-an-external-client-directly-query-a-data-node/199854/1 "2019-09-17T15:58:12Z")

</div>

Hello everyone,

I followed this [article](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/modules-node.html) to configure certain nodes in my cluster as data nodes.

I then ran this API call GET /\_all/\_search on the data node and was able to receive a response.

So wanted to check if this result is an expected behaviour or not. I was under the impression that the query to a data node can only be performed by a master/coordinating-node and not by an external client.

Thanks in advance,  
Ashutosh.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 17, 2019, 4:10pm UTC](https://discuss.elastic.co/t/can-an-external-client-directly-query-a-data-node/199854/2 "2019-09-17T16:10:21Z")

</div>

Perhaps read about the different types nodes [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html)

Data nodes can be directly queried, a data node is also implicitly a coordinating node.

Typically master nodes are not directly queried, that is not best practice.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 15, 2019, 4:15pm UTC](https://discuss.elastic.co/t/can-an-external-client-directly-query-a-data-node/199854/3 "2019-10-15T16:15:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
