@@ -35,10 +35,10 @@ |
||
| 35 | 35 | /** |
| 36 | 36 | * Creates a new document. |
| 37 | 37 | * |
| 38 | - * @param int|string $id OPTIONAL $id Id is create if empty |
|
| 38 | + * @param string $id OPTIONAL $id Id is create if empty |
|
| 39 | 39 | * @param array|string $data OPTIONAL Data array |
| 40 | - * @param Type|string $type OPTIONAL Type name |
|
| 41 | - * @param Index|string $index OPTIONAL Index name |
|
| 40 | + * @param string $type OPTIONAL Type name |
|
| 41 | + * @param Index $index OPTIONAL Index name |
|
| 42 | 42 | */ |
| 43 | 43 | public function __construct($id = '', $data = [], $type = '', $index = '') |
| 44 | 44 | { |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | $types = is_array($types) ? $types : [$types]; |
| 132 | 132 | |
| 133 | 133 | $types = array_map( |
| 134 | - function ($type) { |
|
| 134 | + function($type) { |
|
| 135 | 135 | if ($type instanceof Type) { |
| 136 | 136 | $type = $type->getName(); |
| 137 | 137 | } |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | * as string. |
| 66 | 66 | * |
| 67 | 67 | * @param string $query |
| 68 | - * @return mixed |
|
| 68 | + * @return string |
|
| 69 | 69 | */ |
| 70 | 70 | public function sanityzeQueryStringBool($query) |
| 71 | 71 | { |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | /** |
| 16 | 16 | * Construct constant score query. |
| 17 | 17 | * |
| 18 | - * @param null|AbstractQuery|array $filter |
|
| 18 | + * @param null|AbstractQuery $filter |
|
| 19 | 19 | */ |
| 20 | 20 | public function __construct(AbstractQuery $filter = null) |
| 21 | 21 | { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | /** |
| 28 | 28 | * Set filter. |
| 29 | 29 | * |
| 30 | - * @param array|AbstractQuery $filter |
|
| 30 | + * @param AbstractQuery $filter |
|
| 31 | 31 | * |
| 32 | 32 | * @return $this |
| 33 | 33 | */ |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | /** |
| 14 | 14 | * @param string $key The field on which to query |
| 15 | 15 | * @param array|string $location Location as coordinates array or geohash string ['lat' => 40.3, 'lon' => 45.2] |
| 16 | - * @param string|int $precision Integer length of geohash prefix or distance (3, or "50m") |
|
| 16 | + * @param integer $precision Integer length of geohash prefix or distance (3, or "50m") |
|
| 17 | 17 | * @param bool $neighbors If true, queries cells next to the given cell. |
| 18 | 18 | */ |
| 19 | 19 | public function __construct($key, $location, $precision = -1, $neighbors = false) |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Set the precision for this query. |
| 28 | 28 | * |
| 29 | - * @param string|int $precision Integer length of geohash prefix or distance (3, or "50m") |
|
| 29 | + * @param integer $precision Integer length of geohash prefix or distance (3, or "50m") |
|
| 30 | 30 | * |
| 31 | 31 | * @return $this |
| 32 | 32 | */ |
@@ -20,6 +20,9 @@ |
||
| 20 | 20 | $this->setParam('id', $id); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param boolean $ignoreUnmapped |
|
| 25 | + */ |
|
| 23 | 26 | private function setIgnoreUnmapped($ignoreUnmapped) |
| 24 | 27 | { |
| 25 | 28 | $this->setParam('ignore_unmapped', $ignoreUnmapped); |