# Which datatype to use for field @version?

**URL:** <https://discuss.elastic.co/t/which-datatype-to-use-for-field-version/45320>\
**Category:** Elasticsearch\
**Created:** [March 24, 2016, 9:27am UTC](https://discuss.elastic.co/t/which-datatype-to-use-for-field-version/45320 "2016-03-24T09:27:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppuschmann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppuschmann/32/146751_2.png) [@ppuschmann](https://discuss.elastic.co/u/ppuschmann)\
**Post date:** [March 24, 2016, 9:27am UTC](https://discuss.elastic.co/t/which-datatype-to-use-for-field-version/45320/1 "2016-03-24T09:27:01Z")

</div>

Hi,  
using the usual™ ELK-Stack we see a field conflict in Kibana for the field "@version".

Since this blocks our migration to Elasticsearch 2.x, I'd like to create a field mapping for "@version", but with which datatype? long or string (analyzed:false) ?

Logstash: 1.5.x  
Elasticsearch: 1.7.x

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 25, 2016, 3:43pm UTC](https://discuss.elastic.co/t/which-datatype-to-use-for-field-version/45320/2 "2016-03-25T15:43:48Z")

</div>

AFAICT that field has always been a string.

---

<div class="post-metadata">

**Author:** ![ppuschmann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppuschmann/32/146751_2.png) [@ppuschmann](https://discuss.elastic.co/u/ppuschmann)\
**Post date:** [March 26, 2016, 5:51am UTC](https://discuss.elastic.co/t/which-datatype-to-use-for-field-version/45320/3 "2016-03-26T05:51:23Z")

</div>

I thought about setting this field to `long` since the default value was integer.

Right now we won't use the field anyway, just asking to improve our index mappings and make this more static/stable. Looks like we also will stick to `string` then.

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:** [July 5, 2017, 11:05pm UTC](https://discuss.elastic.co/t/which-datatype-to-use-for-field-version/45320/4 "2017-07-05T23:05:00Z")

</div>


