# Mapping type name \[\_mapping\] can't start with '\_'

**URL:** https://discuss.elastic.co/t/mapping-type-name-mapping-cant-start-with/109672
**Category:** Elasticsearch
**Created:** [November 30, 2017, 1:07am UTC](https://discuss.elastic.co/t/mapping-type-name-mapping-cant-start-with/109672 "2017-11-30T01:07:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Dannick\_Montanede](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Dannick\_Montanede](https://discuss.elastic.co/u/Dannick_Montanede)
#### Post date: [November 30, 2017, 1:07am UTC](https://discuss.elastic.co/t/mapping-type-name-mapping-cant-start-with/109672/1 "2017-11-30T01:07:58Z")

</div>

I don't understand why I can't update my index.

I always have the same error :

`org.elasticsearch.indices.InvalidTypeNameException: mapping type name [_mapping] can't start with '_'`

---

<div class="post-metadata">

### Author: ![Fram\_Souza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fram_souza/32/24833_2.png) [@Fram\_Souza](https://discuss.elastic.co/u/Fram_Souza)
#### Post date: [November 30, 2017, 1:17am UTC](https://discuss.elastic.co/t/mapping-type-name-mapping-cant-start-with/109672/2 "2017-11-30T01:17:01Z")

</div>

Hi,

How are you doing the update? Post here

---

<div class="post-metadata">

### Author: ![Dannick\_Montanede](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Dannick\_Montanede](https://discuss.elastic.co/u/Dannick_Montanede)
#### Post date: [November 30, 2017, 1:31am UTC](https://discuss.elastic.co/t/mapping-type-name-mapping-cant-start-with/109672/3 "2017-11-30T01:31:12Z")

</div>

I used django\_haystack so I run the command :

```
python manage.py update_index --settings=core.settings.stages
```

---

<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: [December 28, 2017, 1:31am UTC](https://discuss.elastic.co/t/mapping-type-name-mapping-cant-start-with/109672/4 "2017-12-28T01:31:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
