# Create index with mapping from LifecycleComponent\<T\> API

**URL:** <https://discuss.elastic.co/t/create-index-with-mapping-from-lifecyclecomponent-t-api/48908>\
**Category:** Elasticsearch\
**Created:** [May 2, 2016, 4:07am UTC](https://discuss.elastic.co/t/create-index-with-mapping-from-lifecyclecomponent-t-api/48908 "2016-05-02T04:07:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gusti\_Andika](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gusti_andika/32/8315_2.png) [@Gusti\_Andika](https://discuss.elastic.co/u/Gusti_Andika)\
**Post date:** [May 2, 2016, 4:07am UTC](https://discuss.elastic.co/t/create-index-with-mapping-from-lifecyclecomponent-t-api/48908/1 "2016-05-02T04:07:17Z")

</div>

Hi,

How to create index from LifecycleComponent#start, when start triggered ES engine may hasn't yet ready so the index creation will failed. Is there any event we could listen to tell the ES is ready to serve index creation from plugin?  
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 5, 2017, 10:54pm UTC](https://discuss.elastic.co/t/create-index-with-mapping-from-lifecyclecomponent-t-api/48908/2 "2017-07-05T22:54:55Z")

</div>


