# Nodes Explaination On Embedded ES with JAVA

**URL:** <https://discuss.elastic.co/t/nodes-explaination-on-embedded-es-with-java/6085>\
**Category:** Elasticsearch\
**Created:** [December 7, 2011, 12:49am UTC](https://discuss.elastic.co/t/nodes-explaination-on-embedded-es-with-java/6085 "2011-12-07T00:49:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samCougars](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@samCougars](https://discuss.elastic.co/u/samCougars)\
**Post date:** [December 7, 2011, 12:49am UTC](https://discuss.elastic.co/t/nodes-explaination-on-embedded-es-with-java/6085/1 "2011-12-07T00:49:26Z")

</div>

All  
I have been able to do a search successfully. Here is a sample of my code:  
ImmutableSettings.Builder settings = ImmutableSettings.settingsBuilder();  
settings.put("path.home","/elasticSearch");  
Client client = node.client();  
client.prepareIndex("searchdata", "a", String.valueOf(123)).setSource(createJsonForExhibitor(object)).execute().actionGet();

It creates this structure on my drive  
/elasticSearch  
/data  
/elasticSearch  
/nodes  
/0  
/state  
metadata-8  
shards-13  
/indices  
/searchdata  
/0  
/index  
/translog  
/1  
/2  
/3  
node.lock  
/1

What are these all folders for? Can somebody explain to me what are these folders mapped to my index creation?  
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:** [July 6, 2017, 3:46am UTC](https://discuss.elastic.co/t/nodes-explaination-on-embedded-es-with-java/6085/2 "2017-07-06T03:46:17Z")

</div>


