| @@ -127,7 +127,7 @@ | ||
| 127 | 127 | } | 
| 128 | 128 | |
| 129 | 129 | /** | 
| 130 | - * @param string|\Elastica\Index $index | |
| 130 | + * @param string $index | |
| 131 | 131 | * | 
| 132 | 132 | * @return $this | 
| 133 | 133 | */ | 
| @@ -61,7 +61,7 @@ | ||
| 61 | 61 | * node is running on | 
| 62 | 62 |       * Example 2: get('os', 'mem') returns an array with all mem infos | 
| 63 | 63 | * | 
| 64 | - * @return mixed Data array entry or null if not found | |
| 64 | + * @return string Data array entry or null if not found | |
| 65 | 65 | */ | 
| 66 | 66 | public function get() | 
| 67 | 67 |      { | 
| @@ -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 |      { | 
| @@ -187,7 +187,7 @@ discard block | ||
| 187 | 187 | * Sets / overwrites a specific config value. | 
| 188 | 188 | * | 
| 189 | 189 | * @param string $key Key to set | 
| 190 | - * @param mixed $value Value | |
| 190 | + * @param string $value Value | |
| 191 | 191 | * | 
| 192 | 192 | * @return $this | 
| 193 | 193 | */ | 
| @@ -197,8 +197,8 @@ discard block | ||
| 197 | 197 | } | 
| 198 | 198 | |
| 199 | 199 | /** | 
| 200 | - * @param array|string $keys config key or path of config keys | |
| 201 | - * @param mixed $default default value will be returned if key was not found | |
| 200 | + * @param string[] $keys config key or path of config keys | |
| 201 | + * @param boolean $default default value will be returned if key was not found | |
| 202 | 202 | * | 
| 203 | 203 | * @return mixed | 
| 204 | 204 | */ | 
| @@ -330,7 +330,7 @@ discard block | ||
| 330 | 330 | /** | 
| 331 | 331 | * Update document, using update script. Requires elasticsearch >= 0.19.0. | 
| 332 | 332 | * | 
| 333 | - * @param int|string $id document id | |
| 333 | + * @param string $id document id | |
| 334 | 334 | * @param array|\Elastica\Script\AbstractScript|\Elastica\Document $data raw data for request body | 
| 335 | 335 | * @param string $index index to update | 
| 336 | 336 | * @param string $type type of index to update | 
| @@ -551,8 +551,8 @@ discard block | ||
| 551 | 551 | * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html | 
| 552 | 552 | * | 
| 553 | 553 | * @param array $ids Document ids | 
| 554 | - * @param string|\Elastica\Index $index Index name | |
| 555 | - * @param string|\Elastica\Type $type Type of documents | |
| 554 | + * @param Index $index Index name | |
| 555 | + * @param Type $type Type of documents | |
| 556 | 556 | * @param string|bool $routing Optional routing key for all ids | 
| 557 | 557 | * | 
| 558 | 558 | * @throws \Elastica\Exception\InvalidException | 
| @@ -435,7 +435,7 @@ | ||
| 435 | 435 | /** | 
| 436 | 436 | * Sets post_filter argument for the query. The filter is applied after the query has executed. | 
| 437 | 437 | * | 
| 438 | - * @param array|\Elastica\Query\AbstractQuery $filter | |
| 438 | + * @param AbstractQuery $filter | |
| 439 | 439 | * | 
| 440 | 440 | * @return $this | 
| 441 | 441 | * | 
| @@ -3,7 +3,6 @@ | ||
| 3 | 3 | |
| 4 | 4 | use Elastica\Aggregation\AbstractAggregation; | 
| 5 | 5 | use Elastica\Exception\InvalidException; | 
| 6 | -use Elastica\Exception\NotImplementedException; | |
| 7 | 6 | use Elastica\Query\AbstractQuery; | 
| 8 | 7 | use Elastica\Query\MatchAll; | 
| 9 | 8 | use Elastica\Query\QueryString; | 
| @@ -14,10 +14,10 @@ discard block | ||
| 14 | 14 | * @link http://php.net/manual/en/function.json-decode.php | 
| 15 | 15 | * @link http://php.net/manual/en/function.json-last-error.php | 
| 16 | 16 | * | 
| 17 | - * @param string $args,... JSON string to parse | |
| 18 | 17 | * | 
| 19 | 18 | * @throws JSONParseException | 
| 20 | 19 | * | 
| 20 | + * @param string $args | |
| 21 | 21 | * @return array PHP array representation of JSON string | 
| 22 | 22 | */ | 
| 23 | 23 | public static function parse($args/* inherit from json_decode */) | 
| @@ -48,7 +48,6 @@ discard block | ||
| 48 | 48 | * @link http://php.net/manual/en/function.json-encode.php | 
| 49 | 49 | * @link http://php.net/manual/en/function.json-last-error.php | 
| 50 | 50 | * | 
| 51 | - * @param mixed $args,... Target to stringify | |
| 52 | 51 | * | 
| 53 | 52 | * @throws JSONParseException | 
| 54 | 53 | * | 
| @@ -41,7 +41,6 @@ discard block | ||
| 41 | 41 | /** | 
| 42 | 42 | * Suggest prefix must be set either globally or per suggestion. | 
| 43 | 43 | * | 
| 44 | - * @param string $text | |
| 45 | 44 | * | 
| 46 | 45 | * @return $this | 
| 47 | 46 | */ | 
| @@ -53,7 +52,6 @@ discard block | ||
| 53 | 52 | /** | 
| 54 | 53 | * Suggest regex must be set either globally or per suggestion. | 
| 55 | 54 | * | 
| 56 | - * @param string $text | |
| 57 | 55 | * | 
| 58 | 56 | * @return $this | 
| 59 | 57 | */ | 
| @@ -192,7 +192,7 @@ discard block | ||
| 192 | 192 | * | 
| 193 | 193 | * @param array $args OPTIONAL Additional arguments | 
| 194 | 194 | * | 
| 195 | - * @return array Server response | |
| 195 | + * @return Response Server response | |
| 196 | 196 | * | 
| 197 | 197 | * @deprecated Replaced by forcemerge | 
| 198 | 198 | * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-optimize.html | 
| @@ -211,7 +211,7 @@ discard block | ||
| 211 | 211 | * | 
| 212 | 212 | * @param array $args OPTIONAL Additional arguments | 
| 213 | 213 | * | 
| 214 | - * @return array Server response | |
| 214 | + * @return Response Server response | |
| 215 | 215 | * | 
| 216 | 216 | * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html | 
| 217 | 217 | */ | 
| @@ -238,7 +238,7 @@ discard block | ||
| 238 | 238 | * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html | 
| 239 | 239 | * | 
| 240 | 240 | * @param array $args OPTIONAL Arguments to use | 
| 241 | - * @param bool|array $options OPTIONAL | |
| 241 | + * @param boolean $options OPTIONAL | |
| 242 | 242 | * bool=> Deletes index first if already exists (default = false). | 
| 243 | 243 | * array => Associative array of options (option=>value) | 
| 244 | 244 | * |