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
+10-46Lines changed: 10 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
*/
33
33
class Client
34
34
{
35
-
constVERSION = '7.4.0';
35
+
constVERSION = '7.4.1';
36
36
37
37
/**
38
38
* @var Transport
@@ -58,31 +58,37 @@ class Client
58
58
* @var CatNamespace
59
59
*/
60
60
protected$cat;
61
+
61
62
/**
62
63
* @var ClusterNamespace
63
64
*/
64
65
protected$cluster;
66
+
65
67
/**
66
68
* @var IndicesNamespace
67
69
*/
68
70
protected$indices;
71
+
69
72
/**
70
73
* @var IngestNamespace
71
74
*/
72
75
protected$ingest;
76
+
73
77
/**
74
78
* @var NodesNamespace
75
79
*/
76
80
protected$nodes;
81
+
77
82
/**
78
83
* @var SnapshotNamespace
79
84
*/
80
85
protected$snapshot;
86
+
81
87
/**
82
88
* @var TasksNamespace
83
89
*/
84
90
protected$tasks;
85
-
91
+
86
92
87
93
/**
88
94
* Client constructor
@@ -138,7 +144,6 @@ public function bulk(array $params = [])
138
144
139
145
return$this->performRequest($endpoint);
140
146
}
141
-
142
147
/**
143
148
* $params['scroll_id'] = DEPRECATED (list) A comma-separated list of scroll IDs to clear
144
149
* $params['body'] = (array) A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter
@@ -160,7 +165,6 @@ public function clearScroll(array $params = [])
160
165
161
166
return$this->performRequest($endpoint);
162
167
}
163
-
164
168
/**
165
169
* $params['index'] = (list) A comma-separated list of indices to restrict the results
166
170
* $params['type'] = DEPRECATED (list) A comma-separated list of types to restrict the results
@@ -199,7 +203,6 @@ public function count(array $params = [])
199
203
200
204
return$this->performRequest($endpoint);
201
205
}
202
-
203
206
/**
204
207
* $params['id'] = (string) Document ID (Required)
205
208
* $params['index'] = (string) The name of the index (Required)
@@ -234,7 +237,6 @@ public function create(array $params = [])
234
237
235
238
return$this->performRequest($endpoint);
236
239
}
237
-
238
240
/**
239
241
* $params['id'] = (string) The document ID (Required)
240
242
* $params['index'] = (string) The name of the index (Required)
@@ -267,7 +269,6 @@ public function delete(array $params = [])
267
269
268
270
return$this->performRequest($endpoint);
269
271
}
270
-
271
272
/**
272
273
* $params['index'] = (list) A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices (Required)
273
274
* $params['type'] = DEPRECATED (list) A comma-separated list of document types to search; leave empty to perform the operation on all types
@@ -324,7 +325,6 @@ public function deleteByQuery(array $params = [])
324
325
325
326
return$this->performRequest($endpoint);
326
327
}
327
-
328
328
/**
329
329
* $params['task_id'] = (string) The task id to rethrottle
330
330
* $params['requests_per_second'] = (number) The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. (Required)
@@ -344,7 +344,6 @@ public function deleteByQueryRethrottle(array $params = [])
@@ -824,7 +808,6 @@ public function putScript(array $params = [])
824
808
825
809
return$this->performRequest($endpoint);
826
810
}
827
-
828
811
/**
829
812
* $params['index'] = (list) A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
830
813
* $params['ignore_unavailable'] = (boolean) Whether specified concrete indices should be ignored when unavailable (missing or closed)
@@ -852,7 +835,6 @@ public function rankEval(array $params = [])
852
835
853
836
return$this->performRequest($endpoint);
854
837
}
855
-
856
838
/**
857
839
* $params['refresh'] = (boolean) Should the effected indexes be refreshed?
858
840
* $params['timeout'] = (time) Time each individual bulk request should wait for shards that are unavailable. (Default = 1m)
@@ -879,7 +861,6 @@ public function reindex(array $params = [])
879
861
880
862
return$this->performRequest($endpoint);
881
863
}
882
-
883
864
/**
884
865
* $params['task_id'] = (string) The task id to rethrottle
885
866
* $params['requests_per_second'] = (number) The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. (Required)
@@ -899,7 +880,6 @@ public function reindexRethrottle(array $params = [])
899
880
900
881
return$this->performRequest($endpoint);
901
882
}
902
-
903
883
/**
904
884
* $params['id'] = (string) The id of the stored search template
905
885
* $params['body'] = (array) The search definition template and its params
@@ -921,7 +901,6 @@ public function renderSearchTemplate(array $params = [])
921
901
922
902
return$this->performRequest($endpoint);
923
903
}
924
-
925
904
/**
926
905
* $params['body'] = (array) The script to execute
927
906
*
@@ -943,7 +922,6 @@ public function scriptsPainlessExecute(array $params = [])
943
922
944
923
return$this->performRequest($endpoint);
945
924
}
946
-
947
925
/**
948
926
* $params['scroll_id'] = DEPRECATED (string) The scroll ID
949
927
* $params['scroll'] = (time) Specify how long a consistent view of the index should be maintained for scrolled search
@@ -967,7 +945,6 @@ public function scroll(array $params = [])
967
945
968
946
return$this->performRequest($endpoint);
969
947
}
970
-
971
948
/**
972
949
* $params['index'] = (list) A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
973
950
* $params['type'] = DEPRECATED (list) A comma-separated list of document types to search; leave empty to perform the operation on all types
@@ -1034,7 +1011,6 @@ public function search(array $params = [])
1034
1011
1035
1012
return$this->performRequest($endpoint);
1036
1013
}
1037
-
1038
1014
/**
1039
1015
* $params['index'] = (list) A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
1040
1016
* $params['preference'] = (string) Specify the node or shard the operation should be performed on (default: random)
@@ -1059,7 +1035,6 @@ public function searchShards(array $params = [])
1059
1035
1060
1036
return$this->performRequest($endpoint);
1061
1037
}
1062
-
1063
1038
/**
1064
1039
* $params['index'] = (list) A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
1065
1040
* $params['type'] = DEPRECATED (list) A comma-separated list of document types to search; leave empty to perform the operation on all types
@@ -1096,7 +1071,6 @@ public function searchTemplate(array $params = [])
1096
1071
1097
1072
return$this->performRequest($endpoint);
1098
1073
}
1099
-
1100
1074
/**
1101
1075
* $params['index'] = (string) The index in which the document resides. (Required)
1102
1076
* $params['id'] = (string) The id of the document, when not specified a doc param should be supplied.
@@ -1126,7 +1100,7 @@ public function termvectors(array $params = [])
1126
1100
$body = $this->extractArgument($params, 'body');
1127
1101
1128
1102
$endpointBuilder = $this->endpoints;
1129
-
$endpoint = $endpointBuilder('Termvectors');
1103
+
$endpoint = $endpointBuilder('TermVectors');
1130
1104
$endpoint->setParams($params);
1131
1105
$endpoint->setIndex($index);
1132
1106
$endpoint->setId($id);
@@ -1135,7 +1109,6 @@ public function termvectors(array $params = [])
1135
1109
1136
1110
return$this->performRequest($endpoint);
1137
1111
}
1138
-
1139
1112
/**
1140
1113
* $params['id'] = (string) Document ID (Required)
1141
1114
* $params['index'] = (string) The name of the index (Required)
@@ -1174,7 +1147,6 @@ public function update(array $params = [])
1174
1147
1175
1148
return$this->performRequest($endpoint);
1176
1149
}
1177
-
1178
1150
/**
1179
1151
* $params['index'] = (list) A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices (Required)
1180
1152
* $params['type'] = DEPRECATED (list) A comma-separated list of document types to search; leave empty to perform the operation on all types
@@ -1234,7 +1206,6 @@ public function updateByQuery(array $params = [])
1234
1206
1235
1207
return$this->performRequest($endpoint);
1236
1208
}
1237
-
1238
1209
/**
1239
1210
* $params['task_id'] = (string) The task id to rethrottle
1240
1211
* $params['requests_per_second'] = (number) The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. (Required)
@@ -1254,37 +1225,30 @@ public function updateByQueryRethrottle(array $params = [])
0 commit comments