summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/lib/Elastica/Query/Nested.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Query/Nested.php')
-rw-r--r--vendor/ruflin/elastica/lib/Elastica/Query/Nested.php29
1 files changed, 15 insertions, 14 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Query/Nested.php b/vendor/ruflin/elastica/lib/Elastica/Query/Nested.php
index 3d2f2f64..b072cfc8 100644
--- a/vendor/ruflin/elastica/lib/Elastica/Query/Nested.php
+++ b/vendor/ruflin/elastica/lib/Elastica/Query/Nested.php
@@ -1,22 +1,21 @@
<?php
-
namespace Elastica\Query;
/**
- * Nested query
+ * Nested query.
*
- * @category Xodoa
- * @package Elastica
* @author Nicolas Ruflin <spam@ruflin.com>
- * @link http://www.elasticsearch.org/guide/reference/query-dsl/nested-query.html
+ *
+ * @link http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html
*/
class Nested extends AbstractQuery
{
/**
- * Adds field to mlt query
+ * Adds field to mlt query.
+ *
+ * @param string $path Nested object path
*
- * @param string $path Nested object path
- * @return \Elastica\Query\Nested
+ * @return $this
*/
public function setPath($path)
{
@@ -24,10 +23,11 @@ class Nested extends AbstractQuery
}
/**
- * Sets nested query
+ * Sets nested query.
*
- * @param \Elastica\Query\AbstractQuery $query
- * @return \Elastica\Query\Nested
+ * @param \Elastica\Query\AbstractQuery $query
+ *
+ * @return $this
*/
public function setQuery(AbstractQuery $query)
{
@@ -35,10 +35,11 @@ class Nested extends AbstractQuery
}
/**
- * Set score method
+ * Set score method.
+ *
+ * @param string $scoreMode Options: avg, total, max and none.
*
- * @param string $scoreMode Options: avg, total, max and none.
- * @return \Elastica\Query\Nested
+ * @return $this
*/
public function setScoreMode($scoreMode)
{