# Indexing in elasticsearch source code

**URL:** <https://discuss.elastic.co/t/indexing-in-elasticsearch-source-code/5748>\
**Category:** Elasticsearch\
**Created:** [November 2, 2011, 12:28pm UTC](https://discuss.elastic.co/t/indexing-in-elasticsearch-source-code/5748 "2011-11-02T12:28:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BARNEY](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@BARNEY](https://discuss.elastic.co/u/BARNEY)\
**Post date:** [November 2, 2011, 12:28pm UTC](https://discuss.elastic.co/t/indexing-in-elasticsearch-source-code/5748/1 "2011-11-02T12:28:01Z")

</div>

Hi,

I am using mobz(web interface) for creating indexes.  
I have build elasticsearch-elasticsearch-v0.18.0-8 source code,now can  
anyone help me to find where exactly creating indexes happening with  
m shards and n shards in the source code?  
I am using intellij IDEA as well.

thanks,  
kalyan

---

<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:50am UTC](https://discuss.elastic.co/t/indexing-in-elasticsearch-source-code/5748/2 "2017-07-06T03:50:07Z")

</div>


