I created an elasticsearch index, and my current mapping stores the dollar amount of an element as a string. This is difficult because I cannot correctly find / filter this value.
GET catalog/product/_search { "filter": { "range": { "price": { "from": 230.0, "to": 300.0 } } } }
Where the price is displayed as a string. I used the string because, going from the python decimal value, I had problems when that value suddenly gets the values at about 17.98999999999999999999998789. This happens sometimes, but I don’t want to go into the issue of switching from decimal decimal code to java double / float (so I'm just a str () thing).
Any thoughts on a better approach? Should I bite a bullet and match the price with double or floating?
python elasticsearch
stincity
source share