# \_bulk API can't create/index a document if the index is not created?

**URL:** <https://discuss.elastic.co/t/-bulk-api-cant-create-index-a-document-if-the-index-is-not-created/4953>\
**Category:** Elasticsearch\
**Created:** [July 26, 2011, 3:40am UTC](https://discuss.elastic.co/t/-bulk-api-cant-create-index-a-document-if-the-index-is-not-created/4953 "2011-07-26T03:40:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajsie](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@ajsie](https://discuss.elastic.co/u/ajsie)\
**Post date:** [July 26, 2011, 3:40am UTC](https://discuss.elastic.co/t/-bulk-api-cant-create-index-a-document-if-the-index-is-not-created/4953/1 "2011-07-26T03:40:16Z")

</div>

I wanna create/index documents using the \_bulk API but get this error  
message:

{"error":"IndexMissingException[[[google.com](http://google.com)] missing]","status":404}

The index name is [google.com](http://google.com). Does this mean I have to create that  
index first?

If so, why is it created automatically in a single index/create  
operation but not in bulk operation?

---

<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:** [July 26, 2011, 4:58am UTC](https://discuss.elastic.co/t/-bulk-api-cant-create-index-a-document-if-the-index-is-not-created/4953/2 "2011-07-26T04:58:59Z")

</div>

It should create an index automatically, post a recreation if it doesn't.

On Tue, Jul 26, 2011 at 6:40 AM, ajsie [johnny.weng.luu@gmail.com](mailto:johnny.weng.luu@gmail.com) wrote:

> I wanna create/index documents using the \_bulk API but get this error  
> message:
> 
> {"error":"IndexMissingException[[[google.com](http://google.com)] missing]","status":404}
> 
> The index name is [google.com](http://google.com). Does this mean I have to create that  
> index first?
> 
> If so, why is it created automatically in a single index/create  
> operation but not in bulk operation?

---

<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:59am UTC](https://discuss.elastic.co/t/-bulk-api-cant-create-index-a-document-if-the-index-is-not-created/4953/3 "2017-07-06T03:59:28Z")

</div>


