summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php')
-rw-r--r--vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php25
1 files changed, 12 insertions, 13 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php b/vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php
index 4306fd9c..c2b903ea 100644
--- a/vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php
+++ b/vendor/ruflin/elastica/lib/Elastica/Query/Prefix.php
@@ -1,18 +1,15 @@
<?php
-
namespace Elastica\Query;
/**
- * Prefix query
+ * Prefix query.
*
- * @category Xodoa
- * @package Elastica
- * @link http://www.elasticsearch.org/guide/reference/query-dsl/prefix-query.html
+ * @link http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html
*/
class Prefix extends AbstractQuery
{
/**
- * Constructs the Prefix query object
+ * Constructs the Prefix query object.
*
* @param array $prefix OPTIONAL Calls setRawPrefix with the given $prefix array
*/
@@ -25,8 +22,9 @@ class Prefix extends AbstractQuery
* setRawPrefix can be used instead of setPrefix if some more special
* values for a prefix have to be set.
*
- * @param array $prefix Prefix array
- * @return \Elastica\Query\Prefix Current object
+ * @param array $prefix Prefix array
+ *
+ * @return $this
*/
public function setRawPrefix(array $prefix)
{
@@ -34,12 +32,13 @@ class Prefix extends AbstractQuery
}
/**
- * Adds a prefix to the prefix query
+ * Adds a prefix to the prefix query.
+ *
+ * @param string $key Key to query
+ * @param string|array $value Values(s) for the query. Boost can be set with array
+ * @param float $boost OPTIONAL Boost value (default = 1.0)
*
- * @param string $key Key to query
- * @param string|array $value Values(s) for the query. Boost can be set with array
- * @param float $boost OPTIONAL Boost value (default = 1.0)
- * @return \Elastica\Query\Prefix Current object
+ * @return $this
*/
public function setPrefix($key, $value, $boost = 1.0)
{