@@ -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 | { |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | * |
| 67 | 67 | * @param string $query |
| 68 | 68 | * |
| 69 | - * @return mixed |
|
| 69 | + * @return string |
|
| 70 | 70 | */ |
| 71 | 71 | public function sanityzeQueryStringBool($query) |
| 72 | 72 | { |
@@ -125,16 +125,16 @@ |
||
| 125 | 125 | return new Avg($name); |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | - /** |
|
| 129 | - * avg bucket aggregation. |
|
| 130 | - * |
|
| 131 | - * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html |
|
| 132 | - * |
|
| 133 | - * @param string $name |
|
| 134 | - * @param string|null $bucketsPath |
|
| 135 | - * |
|
| 136 | - * @return AvgBucket |
|
| 137 | - */ |
|
| 128 | + /** |
|
| 129 | + * avg bucket aggregation. |
|
| 130 | + * |
|
| 131 | + * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html |
|
| 132 | + * |
|
| 133 | + * @param string $name |
|
| 134 | + * @param string|null $bucketsPath |
|
| 135 | + * |
|
| 136 | + * @return AvgBucket |
|
| 137 | + */ |
|
| 138 | 138 | public function avg_bucket($name, $bucketsPath = null) |
| 139 | 139 | { |
| 140 | 140 | return new AvgBucket($name, $bucketsPath); |