# Confused!Different types of data are stored in the same field

**URL:** <https://discuss.elastic.co/t/confused-different-types-of-data-are-stored-in-the-same-field/118618>\
**Category:** Elasticsearch\
**Created:** [February 6, 2018, 10:47am UTC](https://discuss.elastic.co/t/confused-different-types-of-data-are-stored-in-the-same-field/118618 "2018-02-06T10:47:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eboy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eboy/32/22172_2.png) [@eboy](https://discuss.elastic.co/u/eboy)\
**Post date:** [February 6, 2018, 10:47am UTC](https://discuss.elastic.co/t/confused-different-types-of-data-are-stored-in-the-same-field/118618/1 "2018-02-06T10:47:43Z")

</div>

Dynamically added data, the same field originally stored as long type, now stored text, can not store, Is there anyone have encountered such problems, how to deal with.  
I have used "ignore\_malformed", but he cannot be searched and aggregated, which is not suitable for current use.  
I wonder if there is a type that can store various data types and support search and aggregation.  
thank you

---

<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:** [March 6, 2018, 10:47am UTC](https://discuss.elastic.co/t/confused-different-types-of-data-are-stored-in-the-same-field/118618/2 "2018-03-06T10:47:47Z")

</div>

Closed on March 6, 2018, 10:47am UTC

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