# Mapping Issue in Index setting up manual mapping

**URL:** <https://discuss.elastic.co/t/mapping-issue-in-index-setting-up-manual-mapping/226485>\
**Category:** Logstash\
**Created:** [April 3, 2020, 10:56pm UTC](https://discuss.elastic.co/t/mapping-issue-in-index-setting-up-manual-mapping/226485 "2020-04-03T22:56:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergioc](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Sergioc](https://discuss.elastic.co/u/Sergioc)\
**Post date:** [April 3, 2020, 10:56pm UTC](https://discuss.elastic.co/t/mapping-issue-in-index-setting-up-manual-mapping/226485/1 "2020-04-03T22:56:42Z")

</div>

Hello, hope everybody is safe...

I have a logstash pipeline that sends data from a SQL database to elastic.  
I have never configured mappings , I was letting elastic to set up the mapping for me.  
but I have a field that is for Temperature that elastic was mapping the field as a long and in datatables I was missing the decimal points.  
I was reading that I need to change the field to float.

So I create a new index, I have manually added a mapping for the fields, including the temperature as a float but when I'm sending the data from logstash I'm receiving this error.

```
Rejecting mapping update to [coronavirus] as the final mapping would have more than 1 type

```

I don't know what else to do.

Thank you in advance.

Yes, my index name is Coronavirus, it is from a screening tool that we have created in our company to save data of all persons visiting the building. and I have a small dashboard to show that data but the temperature was showing as Int in the tables.

---

<div class="post-metadata">

**Author:** ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)\
**Post date:** [April 4, 2020, 12:22am UTC](https://discuss.elastic.co/t/mapping-issue-in-index-setting-up-manual-mapping/226485/2 "2020-04-04T00:22:09Z")

</div>

Hi,

Can you post the new mapping aswell as the existing one and how do you manage the mapping update ?

( need all the code you can provide to understand the problem )

First i recommand you to delete the index and create a new one with custom mapping BEFORE you start to fill it with data.

You can simply use the API and POST /\_mapping  
{ ## your mapping here ## }

---

<div class="post-metadata">

**Author:** ![Sergioc](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Sergioc](https://discuss.elastic.co/u/Sergioc)\
**Post date:** [April 6, 2020, 7:18pm UTC](https://discuss.elastic.co/t/mapping-issue-in-index-setting-up-manual-mapping/226485/3 "2020-04-06T19:18:22Z")

</div>

Hello Sr,  
Thank you for your help, the index was deleted and then i created the mapping manually and it works.  
Thank you so much.

---

<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:** [May 4, 2020, 7:18pm UTC](https://discuss.elastic.co/t/mapping-issue-in-index-setting-up-manual-mapping/226485/4 "2020-05-04T19:18:29Z")

</div>

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