# Currency fields

**URL:** https://discuss.elastic.co/t/currency-fields/13218
**Category:** Elasticsearch
**Created:** [August 14, 2013, 9:10pm UTC](https://discuss.elastic.co/t/currency-fields/13218 "2013-08-14T21:10:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![paranoiabla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paranoiabla/32/2160_2.png) [@paranoiabla](https://discuss.elastic.co/u/paranoiabla)
#### Post date: [August 14, 2013, 9:10pm UTC](https://discuss.elastic.co/t/currency-fields/13218/1 "2013-08-14T21:10:16Z")

</div>

Hi guys,

I saw in SOLR they have a special field for currency fields (see:  
[https://wiki.apache.org/solr/CurrencyField](https://wiki.apache.org/solr/CurrencyField)).  
So in brief, all you need to do is export Strings in the form of  
"12.21,USD" or "34.44,EUR" where the first part is the value and the second  
is the currency ISO code.  
Then SOLR can be configured to convert your values to the desired currency  
(it has an xml mapping with the conversion rates, or it can use online  
service).  
It seems quite handy, because I can request a given field in any currency,  
and i don't have to implement the conversion myself.

My question is: do you plan to implement a similar feature?

Thanks 🙂

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:21am UTC](https://discuss.elastic.co/t/currency-fields/13218/2 "2017-07-06T02:21:05Z")

</div>


