You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Elasticsearch/Client.php
+38-38Lines changed: 38 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ public function __construct(Transport $transport, callable $endpoint, array $reg
111
111
}
112
112
113
113
/**
114
-
* @param $params
114
+
* @param string[] $params
115
115
* @return array
116
116
*/
117
117
publicfunctioninfo($params = [])
@@ -127,7 +127,7 @@ public function info($params = [])
127
127
}
128
128
129
129
/**
130
-
* @param $params array Associative array of parameters
130
+
* @param array $params Associative array of parameters
131
131
*
132
132
* @return bool
133
133
*/
@@ -168,7 +168,7 @@ public function ping($params = [])
168
168
* ['_source_exclude'] = (list) A list of fields to exclude from the returned _source field
169
169
* ['_source_include'] = (list) A list of fields to extract and return from the _source field
170
170
*
171
-
* @param $params array Associative array of parameters
171
+
* @param array $params Associative array of parameters
172
172
*
173
173
* @return array
174
174
*/
@@ -202,7 +202,7 @@ public function get($params)
202
202
* ['refresh'] = (boolean) Refresh the shard containing the document before performing the operation
203
203
* ['routing'] = (string) Specific routing value
204
204
*
205
-
* @param $params array Associative array of parameters
205
+
* @param array $params Associative array of parameters
206
206
*
207
207
* @return array
208
208
*/
@@ -238,7 +238,7 @@ public function getSource($params)
238
238
* ['timeout'] = (time) Explicit operation timeout
239
239
* ['version_type'] = (enum) Specific version type
240
240
*
241
-
* @param $params array Associative array of parameters
241
+
* @param array $params Associative array of parameters
242
242
*
243
243
* @return array
244
244
*/
@@ -337,7 +337,7 @@ public function deleteByQuery($params = array())
337
337
* ['allow_no_indices'] = (bool) Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
338
338
* ['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both.
339
339
*
340
-
* @param $params array Associative array of parameters
340
+
* @param array $params Associative array of parameters
341
341
*
342
342
* @return array
343
343
*/
@@ -375,7 +375,7 @@ public function count($params = array())
375
375
* ['version'] = (number) Explicit version number for concurrency control
376
376
* ['version_type'] = (enum) Specific version type
377
377
*
378
-
* @param $params array Associative array of parameters
378
+
* @param array $params Associative array of parameters
379
379
*
380
380
* @return array
381
381
*
@@ -408,7 +408,7 @@ public function countPercolate($params = array())
408
408
* ['prefer_local'] = (boolean) With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true)
409
409
* ['body'] = (array) The document (`doc`) to percolate against registered queries; optionally also a `query` to limit the percolation to specific registered queries
410
410
*
411
-
* @param $params array Associative array of parameters
411
+
* @param array $params Associative array of parameters
412
412
*
413
413
* @return array
414
414
*
@@ -442,7 +442,7 @@ public function percolate($params)
442
442
* ['allow_no_indices'] = (boolean) Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
443
443
* ['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both.
444
444
*
445
-
* @param $params array Associative array of parameters
445
+
* @param array $params Associative array of parameters
446
446
*
447
447
* @return array
448
448
*
@@ -481,7 +481,7 @@ public function mpercolate($params = array())
481
481
* ['parent'] = (string) Parent id of documents. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".
482
482
* ['realtime'] = (boolean) Specifies if request is real-time as opposed to near-real-time (default: true).
483
483
*
484
-
* @param $params array Associative array of parameters
484
+
* @param array $params Associative array of parameters
485
485
*
486
486
* @return array
487
487
*/
@@ -521,7 +521,7 @@ public function termvectors($params = array())
521
521
* ['parent'] = (string) Parent id of documents. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".
522
522
* ['realtime'] = (boolean) Specifies if request is real-time as opposed to near-real-time (default: true).
523
523
*
524
-
* @param $params array Associative array of parameters
524
+
* @param array $params Associative array of parameters
525
525
*
526
526
* @return array
527
527
*/
@@ -554,7 +554,7 @@ public function mtermvectors($params = array())
554
554
* ['refresh'] = (boolean) Refresh the shard containing the document before performing the operation
555
555
* ['routing'] = (string) Specific routing value
556
556
*
557
-
* @param $params array Associative array of parameters
557
+
* @param array $params Associative array of parameters
558
558
*
559
559
* @return array | boolean
560
560
*/
@@ -594,7 +594,7 @@ public function exists($params)
594
594
* ['_source_exclude'] = (list) A list of fields to exclude from the returned _source field
595
595
* ['_source_include'] = (list) A list of fields to extract and return from the _source field
596
596
*
597
-
* @param $params array Associative array of parameters
597
+
* @param array $params Associative array of parameters
598
598
*
599
599
* @return array
600
600
*/
@@ -623,7 +623,7 @@ public function mget($params = array())
623
623
* ['search_type'] = (enum) Search operation type
624
624
* ['body'] = (array|string) The request definitions (metadata-search request definition pairs), separated by newlines
625
625
*
626
-
* @param $params array Associative array of parameters
626
+
* @param array $params Associative array of parameters
627
627
*
628
628
* @return array
629
629
*/
@@ -653,7 +653,7 @@ public function msearch($params = array())
653
653
* ['body'] = (array|string) The request definitions (metadata-search request definition pairs), separated by newlines
654
654
* ['max_concurrent_searches'] = (number) Controls the maximum number of concurrent searches the multi search api will execute
655
655
*
656
-
* @param $params array Associative array of parameters
656
+
* @param array $params Associative array of parameters
657
657
*
658
658
* @return array
659
659
*/
@@ -692,7 +692,7 @@ public function msearchTemplate($params = array())
692
692
* ['version_type'] = (enum) Specific version type
693
693
* ['body'] = (array) The document
694
694
*
695
-
* @param $params array Associative array of parameters
695
+
* @param array $params Associative array of parameters
696
696
*
697
697
* @return array
698
698
*/
@@ -726,7 +726,7 @@ public function create($params)
726
726
* ['fields'] = (list) Default comma-separated list of fields to return in the response for updates
727
727
* ['body'] = (array) The document
728
728
*
729
-
* @param $params array Associative array of parameters
729
+
* @param array $params Associative array of parameters
730
730
*
731
731
* @return array
732
732
*/
@@ -766,7 +766,7 @@ public function bulk($params = array())
766
766
* ['version_type'] = (enum) Specific version type
767
767
* ['body'] = (array) The document
768
768
*
769
-
* @param $params array Associative array of parameters
769
+
* @param array $params Associative array of parameters
770
770
*
771
771
* @return array
772
772
*/
@@ -799,7 +799,7 @@ public function index($params)
799
799
* ['requests_per_second'] = (float) The throttle for this request in sub-requests per second. 0 means set no throttle
800
800
* ['body'] = (array) The search definition using the Query DSL and the prototype for the index request (Required)
801
801
*
802
-
* @param $params array Associative array of parameters
802
+
* @param array $params Associative array of parameters
803
803
*
804
804
* @return array
805
805
*/
@@ -825,7 +825,7 @@ public function reindex($params)
825
825
* ['source'] = (string) The URL-encoded request definition (instead of using request body)
826
826
* ['body'] = (array) The request definition
827
827
*
828
-
* @param $params array Associative array of parameters
828
+
* @param array $params Associative array of parameters
829
829
*
830
830
* @return array
831
831
*/
@@ -867,7 +867,7 @@ public function suggest($params = array())
867
867
* ['_source_include'] = (list) A list of fields to extract and return from the _source field
868
868
* ['body'] = (string) The URL-encoded query definition (instead of using the request body)
869
869
*
870
-
* @param $params array Associative array of parameters
870
+
* @param array $params Associative array of parameters
871
871
*
872
872
* @return array
873
873
*/
@@ -929,7 +929,7 @@ public function explain($params)
929
929
* ['version'] = (boolean) Specify whether to return document version as part of a hit
930
930
* ['body'] = (array|string) The search definition using the Query DSL
931
931
*
932
-
* @param $params array Associative array of parameters
932
+
* @param array $params Associative array of parameters
933
933
*
934
934
* @return array
935
935
*/
@@ -962,7 +962,7 @@ public function search($params = array())
962
962
* ['allow_no_indices'] = (bool) Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
963
963
* ['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both.
964
964
*
965
-
* @param $params array Associative array of parameters
965
+
* @param array $params Associative array of parameters
966
966
*
967
967
* @return array
968
968
*/
@@ -987,7 +987,7 @@ public function searchShards($params = array())
987
987
* $params['index'] = (list) A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
988
988
* ['type'] = (list) A comma-separated list of document types to search; leave empty to perform the operation on all types
989
989
*
990
-
* @param $params array Associative array of parameters
990
+
* @param array $params Associative array of parameters
991
991
*
992
992
* @return array
993
993
*/
@@ -1015,7 +1015,7 @@ public function searchTemplate($params = array())
1015
1015
* ['scroll'] = (duration) Specify how long a consistent view of the index should be maintained for scrolled search
1016
1016
* ['body'] = (string) The scroll ID for scrolled search
1017
1017
*
1018
-
* @param $params array Associative array of parameters
1018
+
* @param array $params Associative array of parameters
1019
1019
*
1020
1020
* @return array
1021
1021
*/
@@ -1043,7 +1043,7 @@ public function scroll($params = array())
1043
1043
* ['scroll'] = (duration) Specify how long a consistent view of the index should be maintained for scrolled search
1044
1044
* ['body'] = (string) The scroll ID for scrolled search
1045
1045
*
1046
-
* @param $params array Associative array of parameters
1046
+
* @param array $params Associative array of parameters
1047
1047
*
1048
1048
* @return array
1049
1049
*/
@@ -1083,7 +1083,7 @@ public function clearScroll($params = array())
1083
1083
* ['version_type'] = (number) Explicit version number for concurrency control
1084
1084
* ['body'] = (array) The request definition using either `script` or partial `doc`
1085
1085
*
1086
-
* @param $params array Associative array of parameters
1086
+
* @param array $params Associative array of parameters
1087
1087
*
1088
1088
* @return array
1089
1089
*/
@@ -1204,7 +1204,7 @@ public function updateByQuery($params = array())
1204
1204
* $params['id'] = (string) The script ID (Required)
1205
1205
* ['lang'] = (string) The script language (Required)
1206
1206
*
1207
-
* @param $params array Associative array of parameters
1207
+
* @param array $params Associative array of parameters
1208
1208
*
1209
1209
* @return array
1210
1210
*/
@@ -1229,7 +1229,7 @@ public function getScript($params)
1229
1229
* $params['id'] = (string) The script ID (Required)
1230
1230
* ['lang'] = (string) The script language (Required)
1231
1231
*
1232
-
* @param $params array Associative array of parameters
1232
+
* @param array $params Associative array of parameters
1233
1233
*
1234
1234
* @return array
1235
1235
*/
@@ -1254,7 +1254,7 @@ public function deleteScript($params)
1254
1254
* $params['id'] = (string) The script ID (Required)
1255
1255
* ['lang'] = (string) The script language (Required)
1256
1256
*
1257
-
* @param $params array Associative array of parameters
1257
+
* @param array $params Associative array of parameters
1258
1258
*
1259
1259
* @return array
1260
1260
*/
@@ -1279,7 +1279,7 @@ public function putScript($params)
1279
1279
/**
1280
1280
* $params['id'] = (string) The search template ID (Required)
1281
1281
*
1282
-
* @param $params array Associative array of parameters
1282
+
* @param array $params Associative array of parameters
1283
1283
*
1284
1284
* @return array
1285
1285
*/
@@ -1301,7 +1301,7 @@ public function getTemplate($params)
1301
1301
/**
1302
1302
* $params['id'] = (string) The search template ID (Required)
1303
1303
*
1304
-
* @param $params array Associative array of parameters
1304
+
* @param array $params Associative array of parameters
1305
1305
*
1306
1306
* @return array
1307
1307
*/
@@ -1328,7 +1328,7 @@ public function deleteTemplate($params)
1328
1328
* ['allow_no_indices'] = (bool) Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
1329
1329
* ['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both.
1330
1330
*
1331
-
* @param $params array Associative array of parameters
1331
+
* @param array $params Associative array of parameters
1332
1332
*
1333
1333
* @return array
1334
1334
*/
@@ -1355,7 +1355,7 @@ public function fieldStats($params = array())
1355
1355
* ['allow_no_indices'] = (bool) Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
1356
1356
* ['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both.
1357
1357
*
1358
-
* @param $params array Associative array of parameters
1358
+
* @param array $params Associative array of parameters
1359
1359
*
1360
1360
* @return array
1361
1361
*/
@@ -1379,7 +1379,7 @@ public function fieldCaps($params = array())
1379
1379
/**
1380
1380
* $params['id'] = (string) ID of the template to render
1381
1381
*
1382
-
* @param $params array Associative array of parameters
1382
+
* @param array $params Associative array of parameters
1383
1383
*
1384
1384
* @return array
1385
1385
*/
@@ -1483,8 +1483,8 @@ public function remote()
1483
1483
/**
1484
1484
* Catchall for registered namespaces
1485
1485
*
1486
-
* @param $name
1487
-
* @param $arguments
1486
+
* @param string $name
1487
+
* @param array $arguments
1488
1488
* @return Object
1489
1489
* @throws BadMethodCallException if the namespace cannot be found
1490
1490
*/
@@ -1538,7 +1538,7 @@ private function verifyNotNullOrEmpty($name, $var)
0 commit comments