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
+94-2Lines changed: 94 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -313,9 +313,8 @@ public function deleteByQuery($params = array())
313
313
->setType($type)
314
314
->setBody($body);
315
315
$endpoint->setParams($params);
316
-
$response = $endpoint->performRequest();
317
316
318
-
return$endpoint->resultOrFuture($response);
317
+
return$this->performRequest($endpoint);
319
318
}
320
319
321
320
/**
@@ -888,6 +887,7 @@ public function explain($params)
888
887
* ['suggest_size'] = (number) How many suggestions to return in response
889
888
* ['suggest_text'] = (text) The source text for which the suggestions should be returned
890
889
* ['timeout'] = (time) Explicit operation timeout
890
+
* ['terminate_after'] = (number) The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.
891
891
* ['version'] = (boolean) Specify whether to return document version as part of a hit
892
892
* ['body'] = (array|string) The search definition using the Query DSL
893
893
*
@@ -1069,6 +1069,98 @@ public function update($params)
1069
1069
return$this->performRequest($endpoint);
1070
1070
}
1071
1071
1072
+
/**
1073
+
* $params['index'] = (list) A comma-separated list of index names to search; use `_all` or
1074
+
* empty string to perform the operation on all indices (Required)
1075
+
* ['type'] = (list) A comma-separated list of document types to search; leave empty to
1076
+
* perform the operation on all types
1077
+
* ['analyzer'] = (string) The analyzer to use for the query string
1078
+
* ['analyze_wildcard'] = (boolean) Specify whether wildcard and prefix queries should be analyzed
1079
+
* (default: false)
1080
+
* ['default_operator'] = (enum) The default operator for query string query (AND or OR) (AND,OR)
1081
+
* (default: OR)
1082
+
* ['df'] = (string) The field to use as default where no field prefix is given in the
1083
+
* query string
1084
+
* ['explain'] = (boolean) Specify whether to return detailed information about score
1085
+
* computation as part of a hit
1086
+
* ['fields'] = (list) A comma-separated list of fields to return as part of a hit
1087
+
* ['fielddata_fields'] = (list) A comma-separated list of fields to return as the field data
0 commit comments