I'm attempting to index very large numbers (WEI) into Elasticsearch, however due to the limitations of mapping types (uint64 & int32) it would be problematic, considering that we want to run sum aggregations on these fields.
So the only thing that makes sense would be to convert these values to whole numbers instead of WEI. There are two parts to this question/issue, the first is that we are indexing the amount in WEI, we know ETH's decimals are 18. So it's a simple equation of:
value / 10 ^ decimals
In this decimals would be 18. The output of the above equation on let's say 1000000000000000000000 is 1000
Is it possible to perform this through ingest pipelines? If so how?
The second part of this, is certain fields have their own decimals (non-eth payments), and that decimal is in the document (in another field, same index) is it possible to perform this multiplication based on that value? On a per-document basis as well for those specific fields through ingest pipelines?
I'm on Elasticsearch 7.10