# How to map ambiguous data

**URL:** https://discuss.elastic.co/t/how-to-map-ambiguous-data/343271
**Category:** Elasticsearch
**Created:** [September 18, 2023, 2:10pm UTC](https://discuss.elastic.co/t/how-to-map-ambiguous-data/343271 "2023-09-18T14:10:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![francieliton\_araujo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francieliton_araujo/32/47771_2.png) [@francieliton\_araujo](https://discuss.elastic.co/u/francieliton_araujo)
#### Post date: [September 18, 2023, 2:10pm UTC](https://discuss.elastic.co/t/how-to-map-ambiguous-data/343271/1 "2023-09-18T14:10:36Z")

</div>

There is a more practical way to map ambiguous data other than deleting and creating index, I need to make a query to the canvas but try to show a column with an error because the data cannot be ambiguous

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/1/010f7cb32fe9f316954d8ecf7794eb09dd3dcd8e.png)

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [September 19, 2023, 9:15am UTC](https://discuss.elastic.co/t/how-to-map-ambiguous-data/343271/2 "2023-09-19T09:15:01Z")

</div>

Hi @francieliton_araujo,

Can you give an example on what you mean by ambiguous data? Do you mean data that for a given field can be one of many different data types?

---

<div class="post-metadata">

### Author: ![francieliton\_araujo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/francieliton_araujo/32/47771_2.png) [@francieliton\_araujo](https://discuss.elastic.co/u/francieliton_araujo)
#### Post date: [September 19, 2023, 12:31pm UTC](https://discuss.elastic.co/t/how-to-map-ambiguous-data/343271/3 "2023-09-19T12:31:46Z")

</div>

he complains that in some places the field is with Boolean and in other places with floating

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [September 19, 2023, 1:56pm UTC](https://discuss.elastic.co/t/how-to-map-ambiguous-data/343271/4 "2023-09-19T13:56:36Z")

</div>

Thanks for confirming. What is the source of your data?

Given that it's a type conflict between a boolean and long I think choosing a type, creating an explicit mapping for that type and reindexing is probably your best bet.

---

<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: [October 17, 2023, 1:56pm UTC](https://discuss.elastic.co/t/how-to-map-ambiguous-data/343271/5 "2023-10-17T13:56:57Z")

</div>

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