# How to store currency datatype in elasticsearch?

**URL:** https://discuss.elastic.co/t/how-to-store-currency-datatype-in-elasticsearch/65002
**Category:** Elasticsearch
**Created:** [November 4, 2016, 11:13am UTC](https://discuss.elastic.co/t/how-to-store-currency-datatype-in-elasticsearch/65002 "2016-11-04T11:13:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)
#### Post date: [November 4, 2016, 11:13am UTC](https://discuss.elastic.co/t/how-to-store-currency-datatype-in-elasticsearch/65002/1 "2016-11-04T11:13:19Z")

</div>

Can any one tell what is the mapping to store the dollar value in elasticsearch

---

<div class="post-metadata">

### Author: ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)
#### Post date: [November 4, 2016, 11:28am UTC](https://discuss.elastic.co/t/how-to-store-currency-datatype-in-elasticsearch/65002/2 "2016-11-04T11:28:57Z")

</div>

There is no currency datatype, you can store it as `float` or `integer` if you convert dollars to cents.

---

<div class="post-metadata">

### Author: ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)
#### Post date: [November 4, 2016, 11:30am UTC](https://discuss.elastic.co/t/how-to-store-currency-datatype-in-elasticsearch/65002/3 "2016-11-04T11:30:30Z")

</div>

Ok thanks

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [November 5, 2016, 5:39am UTC](https://discuss.elastic.co/t/how-to-store-currency-datatype-in-elasticsearch/65002/4 "2016-11-05T05:39:38Z")

</div>

If you are using Kibana, then you can get it to display as $(NUMBER) using field formatters 🙂

---

<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, 10:06pm UTC](https://discuss.elastic.co/t/how-to-store-currency-datatype-in-elasticsearch/65002/5 "2017-07-05T22:06:23Z")

</div>


