# Index Creation on Startup?

**URL:** <https://discuss.elastic.co/t/index-creation-on-startup/3837>\
**Category:** Elasticsearch\
**Created:** [January 28, 2011, 8:20pm UTC](https://discuss.elastic.co/t/index-creation-on-startup/3837 "2011-01-28T20:20:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bailey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bailey/32/3278_2.png) [@bailey](https://discuss.elastic.co/u/bailey)\
**Post date:** [January 28, 2011, 8:20pm UTC](https://discuss.elastic.co/t/index-creation-on-startup/3837/1 "2011-01-28T20:20:20Z")

</div>

Hi All-

Is there an ES config setting that can instruct ES to create indexes  
(with associated mappings) on startup based on the directories set in  
config/mappings?

Thanks.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 28, 2011, 9:36pm UTC](https://discuss.elastic.co/t/index-creation-on-startup/3837/2 "2011-01-28T21:36:19Z")

</div>

Reposting from IRC: You can crete an index on startup, and ignore it if it already exists (already exists exception (400 HTTP code).

-shay.banon  
On Friday, January 28, 2011 at 10:20 PM, bailey wrote:

> Hi All-
> 
> Is there an ES config setting that can instruct ES to create indexes  
> (with associated mappings) on startup based on the directories set in  
> config/mappings?
> 
> 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, 4:13am UTC](https://discuss.elastic.co/t/index-creation-on-startup/3837/3 "2017-07-06T04:13:11Z")

</div>


