From 32952edfbf160299ec6d6ba92e9b63c0dd368b9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mantas=20Jonu=C5=A1as?= <mantas.jonusas@nfq.lt>
Date: Tue, 24 Mar 2015 10:37:01 +0200
Subject: [PATCH] Added value count aggregation

---
 Aggregation/ValueCountAggregation.php | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 Aggregation/ValueCountAggregation.php

diff --git a/Aggregation/ValueCountAggregation.php b/Aggregation/ValueCountAggregation.php
new file mode 100644
index 0000000..afcab23
--- /dev/null
+++ b/Aggregation/ValueCountAggregation.php
@@ -0,0 +1,26 @@
+<?php
+
+/*
+ * This file is part of the ONGR package.
+ *
+ * (c) NFQ Technologies UAB <info@nfq.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace ONGR\ElasticsearchBundle\DSL\Aggregation;
+
+/**
+ * Class representing Value Count Aggregation.
+ */
+class ValueCountAggregation extends StatsAggregation
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function getType()
+    {
+        return 'value_count';
+    }
+}
-- 
GitLab