I'm wanting to retrieve the number of indices in my ES cluster from within a scripted field of an aggregation.
I know you can access some context values with ctx._source
but does anyone know how to get the total number of indeces from my cluster?
Thanks!