Hello everyone,

I would like to compute the Benford's law into elasticsearch from a doc['some_field'].value with a scripted field,

I have try some lucene expression, but it's doesn't work and Expression is deprecated and support will be removed in the next major version so i would like to try with painless.

If you have any idea to compute this i take

Any tips appreciated.

Thanks!