# How to search in particular node when running multiple nodes

**URL:** <https://discuss.elastic.co/t/how-to-search-in-particular-node-when-running-multiple-nodes/203462>\
**Category:** Elasticsearch\
**Created:** [October 14, 2019, 1:16pm UTC](https://discuss.elastic.co/t/how-to-search-in-particular-node-when-running-multiple-nodes/203462 "2019-10-14T13:16:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gurjit\_buck](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@gurjit\_buck](https://discuss.elastic.co/u/gurjit_buck)\
**Post date:** [October 14, 2019, 1:16pm UTC](https://discuss.elastic.co/t/how-to-search-in-particular-node-when-running-multiple-nodes/203462/1 "2019-10-14T13:16:23Z")

</div>

Hi, I am able to create multiple nodes (actually data folders) by following  
solution mentioned on this link [Create multiple nodes elasticsearch 5.4 - #5 by pjayramkumar](https://discuss.elastic.co/t/create-multiple-nodes-elasticsearch-5-4/86101/5)

I am a .Net developer and I am struggling to find out the way to

1. create new node in same cluster through c# code
2. add document in particular node's index
3. search in particular node's index

Currently I am creating index as per followings

> var node = new Uri("[http://localhost:9200/](http://localhost:9200/)");  
> var settings = new ConnectionSettings(node);  
> var connectionSettings = new ConnectionSettings(node).DisableDirectStreaming().DefaultIndex(indexName);

Thanks

---

<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:** [November 11, 2019, 1:16pm UTC](https://discuss.elastic.co/t/how-to-search-in-particular-node-when-running-multiple-nodes/203462/2 "2019-11-11T13:16:31Z")

</div>

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