Naive Bayes Classifier implemented with Elasticsearch Aggregations