Calculating percentage in elasticsearch

i am using bucket script for calculating percentage in Elasticsearch but i am unable to do so.
I am getting could not find aggregator type bucket_script

Moved post from ES-Hadoop to Elasticsearch forum.

Hey Furqan. Were you able to resolve this issue of percentage ?