I wanted to have a ratio of sum of the document when its suggestion is auto (doc['driverSuggestion'].value== 'AUTO') to divide it by sum of the document when its suggestion is auto plus manual. sum(doc['driverSuggestion'].value== 'AUTO')/(sum(doc['driverSuggestion'].value== 'AUTO')+sum(doc['driverSuggestion'].value== 'MANUAL'))
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.