How to store currency datatype in elasticsearch?


(Kartheek Gummaluri) #1

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


(Christoph) #2

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


(Kartheek Gummaluri) #3

Ok thanks


(Mark Walkom) #4

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


(system) #5