Kilograms to grams convert processor

There is a standard processor for bytes https://www.elastic.co/guide/en/elasticsearch/reference/current/bytes-processor.html
Is there similar processor for grams? Or which processor can be used to achieve same functionality?

The script processor can do many custom operations. Definitely division and multiplication by 1000. Depends on exactly how your data is stored but if you have a field weight that has an integer you know is grams, and you want weight = weight / 1000, this shouldn't be too hard to do. If it's in the middle of some text description it gets trickier.

1 Like

Yes, we have the weight field, and the values can be 3kg, 1200g, can you please helpt how this can be implemented using script processor?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.