summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/lib/Elastica/Filter/Nested.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2015-10-18 09:31:31 +0200
committerPierre Schmitz <pierre@archlinux.de>2015-10-18 09:31:31 +0200
commit80f7dc77d430774192b929d780f96260066df2ee (patch)
tree102eaae7fc9ec567f2af76e96da3de2d1e83afcf /vendor/ruflin/elastica/lib/Elastica/Filter/Nested.php
parentcccd7bb4d819334c07e0dadaf16cbfdef31880e1 (diff)
Update to MediaWiki 1.25.3
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Filter/Nested.php')
-rw-r--r--vendor/ruflin/elastica/lib/Elastica/Filter/Nested.php60
1 files changed, 0 insertions, 60 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Filter/Nested.php b/vendor/ruflin/elastica/lib/Elastica/Filter/Nested.php
deleted file mode 100644
index 16293519..00000000
--- a/vendor/ruflin/elastica/lib/Elastica/Filter/Nested.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-namespace Elastica\Filter;
-
-use Elastica\Query\AbstractQuery;
-
-/**
- * Nested filter
- *
- * @category Xodoa
- * @package Elastica
- * @author Nicolas Ruflin <spam@ruflin.com>
- * @link http://www.elasticsearch.org/guide/reference/query-dsl/nested-filter.html
- */
-class Nested extends AbstractFilter
-{
- /**
- * Adds field to mlt filter
- *
- * @param string $path Nested object path
- * @return \Elastica\Filter\Nested
- */
- public function setPath($path)
- {
- return $this->setParam('path', $path);
- }
-
- /**
- * Sets nested query
- *
- * @param \Elastica\Query\AbstractQuery $query
- * @return \Elastica\Filter\Nested
- */
- public function setQuery(AbstractQuery $query)
- {
- return $this->setParam('query', $query->toArray());
- }
-
- /**
- * Sets nested filter
- *
- * @param \Elastica\Filter\AbstractFilter $filter
- * @return \Elastica\Filter\Nested
- */
- public function setFilter(AbstractFilter $filter)
- {
- return $this->setParam('filter', $filter->toArray());
- }
-
- /**
- * Set score mode
- *
- * @param string $scoreMode Options: avg, total, max and none.
- * @return \Elastica\Filter\Nested
- */
- public function setScoreMode($scoreMode)
- {
- return $this->setParam('score_mode', $scoreMode);
- }
-}