@@ -133,6 +133,7 @@ |
||
133 | 133 | * Return Guzzle resource. |
134 | 134 | * |
135 | 135 | * @param bool $persistent False if not persistent connection |
136 | + * @param string $baseUrl |
|
136 | 137 | * |
137 | 138 | * @return Client |
138 | 139 | */ |
@@ -20,7 +20,7 @@ |
||
20 | 20 | protected $_filters = array(); |
21 | 21 | |
22 | 22 | /** |
23 | - * @param array $filters |
|
23 | + * @param AbstractFilter[] $filters |
|
24 | 24 | */ |
25 | 25 | public function __construct(array $filters = array()) |
26 | 26 | { |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * @param string $key The field on which to filter |
17 | 17 | * @param array|string $location Location as coordinates array or geohash string ['lat' => 40.3, 'lon' => 45.2] |
18 | - * @param string|int $precision Integer length of geohash prefix or distance (3, or "50m") |
|
18 | + * @param integer $precision Integer length of geohash prefix or distance (3, or "50m") |
|
19 | 19 | * @param bool $neighbors If true, filters cells next to the given cell. |
20 | 20 | */ |
21 | 21 | public function __construct($key, $location, $precision = -1, $neighbors = false) |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | /** |
29 | 29 | * Set the precision for this filter. |
30 | 30 | * |
31 | - * @param string|int $precision Integer length of geohash prefix or distance (3, or "50m") |
|
31 | + * @param integer $precision Integer length of geohash prefix or distance (3, or "50m") |
|
32 | 32 | * |
33 | 33 | * @return $this |
34 | 34 | */ |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * Construct HasParent filter. |
17 | 17 | * |
18 | 18 | * @param string|\Elastica\Query|\Elastica\Filter\AbstractFilter $query Query string or a Query object or a filter |
19 | - * @param string|\Elastica\Type $type Parent document type |
|
19 | + * @param string $type Parent document type |
|
20 | 20 | */ |
21 | 21 | public function __construct($query, $type) |
22 | 22 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | /** |
18 | 18 | * @param AbstractFilter $filter filter which will be applied to docs in the specified indices |
19 | - * @param mixed[] $indices |
|
19 | + * @param string[] $indices |
|
20 | 20 | */ |
21 | 21 | public function __construct(AbstractFilter $filter, array $indices) |
22 | 22 | { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $signer = new SignatureV4('es', $region); |
44 | 44 | $credProvider = $this->getCredentialProvider(); |
45 | 45 | |
46 | - return Middleware::mapRequest(function (RequestInterface $req) use ( |
|
46 | + return Middleware::mapRequest(function(RequestInterface $req) use ( |
|
47 | 47 | $signer, |
48 | 48 | $credProvider |
49 | 49 | ) { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | /** |
13 | 13 | * Set the type for this aggregation. |
14 | 14 | * |
15 | - * @param string $field the child type the buckets in the parent space should be mapped to |
|
16 | 15 | * |
17 | 16 | * @return $this |
18 | 17 | */ |
@@ -111,7 +111,7 @@ |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
114 | - * @return array|\Elastica\Search[] |
|
114 | + * @return BaseSearch[] |
|
115 | 115 | */ |
116 | 116 | public function getSearches() |
117 | 117 | { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * Sets / overwrites a specific config value. |
183 | 183 | * |
184 | 184 | * @param string $key Key to set |
185 | - * @param mixed $value Value |
|
185 | + * @param string $value Value |
|
186 | 186 | * |
187 | 187 | * @return $this |
188 | 188 | */ |
@@ -192,8 +192,8 @@ discard block |
||
192 | 192 | } |
193 | 193 | |
194 | 194 | /** |
195 | - * @param array|string $keys config key or path of config keys |
|
196 | - * @param mixed $default default value will be returned if key was not found |
|
195 | + * @param string[] $keys config key or path of config keys |
|
196 | + * @param boolean $default default value will be returned if key was not found |
|
197 | 197 | * |
198 | 198 | * @return mixed |
199 | 199 | */ |
@@ -538,8 +538,8 @@ discard block |
||
538 | 538 | * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html |
539 | 539 | * |
540 | 540 | * @param array $ids Document ids |
541 | - * @param string|\Elastica\Index $index Index name |
|
542 | - * @param string|\Elastica\Type $type Type of documents |
|
541 | + * @param Index $index Index name |
|
542 | + * @param Type $type Type of documents |
|
543 | 543 | * @param string|bool $routing Optional routing key for all ids |
544 | 544 | * |
545 | 545 | * @throws \Elastica\Exception\InvalidException |