From c97b35aa138086ac9fc192067a7c72e4faaf7505 Mon Sep 17 00:00:00 2001 From: Mantas <marc.mantas@gmail.com> Date: Mon, 27 Jun 2016 15:44:25 +0300 Subject: [PATCH] added significant terms aggregation --- .../SignificantTermsAggregation.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/Aggregation/SignificantTermsAggregation.php diff --git a/src/Aggregation/SignificantTermsAggregation.php b/src/Aggregation/SignificantTermsAggregation.php new file mode 100644 index 0000000..be70ed6 --- /dev/null +++ b/src/Aggregation/SignificantTermsAggregation.php @@ -0,0 +1,28 @@ +<?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\ElasticsearchDSL\Aggregation; + +/** + * Class representing TermsAggregation. + * + * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significantterms-aggregation.html + */ +class SignificantTermsAggregation extends TermsAggregation +{ + /** + * {@inheritdoc} + */ + public function getType() + { + return 'significant_terms'; + } +} -- GitLab