# How to store software version numbers?

**URL:** <https://discuss.elastic.co/t/how-to-store-software-version-numbers/201537>\
**Category:** Elasticsearch\
**Created:** [September 29, 2019, 3:09pm UTC](https://discuss.elastic.co/t/how-to-store-software-version-numbers/201537 "2019-09-29T15:09:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruce289](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@bruce289](https://discuss.elastic.co/u/bruce289)\
**Post date:** [September 29, 2019, 3:09pm UTC](https://discuss.elastic.co/t/how-to-store-software-version-numbers/201537/1 "2019-09-29T15:09:16Z")

</div>

Hi,

What is the best practice for storing software version numbers like 6.3.1 or 4.10.2?

None of the field datatypes seem to fit the bill, so my current thinking is to store the major, minor, and patch versions as separate fields. Is there a better way?

Thanks,  
Bruce

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 30, 2019, 12:25pm UTC](https://discuss.elastic.co/t/how-to-store-software-version-numbers/201537/2 "2019-09-30T12:25:15Z")

</div>

Hey,

splitting sounds like a good idea to me... just keep in mind, not all version numbers are semantic and can be longer 🙂

--Alex

---

<div class="post-metadata">

**Author:** ![bruce289](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@bruce289](https://discuss.elastic.co/u/bruce289)\
**Post date:** [September 30, 2019, 9:30pm UTC](https://discuss.elastic.co/t/how-to-store-software-version-numbers/201537/3 "2019-09-30T21:30:54Z")

</div>

Very true. Thanks, Alexander 👍

---

<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 28, 2019, 9:30pm UTC](https://discuss.elastic.co/t/how-to-store-software-version-numbers/201537/4 "2019-10-28T21:30:55Z")

</div>

Closed on October 28, 2019, 9:30pm UTC

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