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
* Re-Add the DeleteByQuery Functionality
Reverts 9f3776a and brings the
`DeleteByQuery` endpoint up to spec with the current API.
* Remove `slice` as a Parameter from DeleteByQuery
It's in the request body, not the query string.
* Include All the DeleteByQuery Params
Generated from a bit of scripting around the delete by query api spec.
Copy file name to clipboardExpand all lines: src/Elasticsearch/Client.php
+61Lines changed: 61 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -253,6 +253,67 @@ public function delete($params)
253
253
return$this->performRequest($endpoint);
254
254
}
255
255
256
+
/**
257
+
*
258
+
* $params['_source'] = (list) True or false to return the _source field or not, or a list of fields to return
259
+
* ['_source_exclude'] = (array) A list of fields to exclude from the returned _source field
260
+
* ['_source_include'] = (array) A list of fields to extract and return from the _source field
261
+
* ['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)
262
+
* ['analyze_wildcard'] = (bool) Specify whether wildcard and prefix queries should be analyzed (default: false)
263
+
* ['analyzer'] = (string) The analyzer to use for the query string
264
+
* ['conflicts'] = (enum) What to do when the delete-by-query hits version conflicts?
265
+
* ['default_operator'] = (enum) The default operator for query string query (AND or OR)
266
+
* ['df'] = (string) The field to use as default where no field prefix is given in the query string
267
+
* ['expand_wildcards'] = (enum) Whether to expand wildcard expression to concrete indices that are open, closed or both.
* ['ignore_unavailable'] = (bool) Whether specified concrete indices should be ignored when unavailable (missing or closed)
270
+
* ['lenient'] = (bool) Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
271
+
* ['preference'] = (string) Specify the node or shard the operation should be performed on (default: random)
272
+
* ['q'] = (string) Query in the Lucene query string syntax
273
+
* ['refresh'] = (bool) Should the effected indexes be refreshed?
274
+
* ['request_cache'] = (bool) Specify if request cache should be used for this request or not, defaults to index level setting
275
+
* ['requests_per_second'] = (number) The throttle for this request in sub-requests per second. -1 means no throttle.
276
+
* ['routing'] = (array) A comma-separated list of specific routing values
277
+
* ['scroll'] = (number) Specify how long a consistent view of the index should be maintained for scrolled search
278
+
* ['scroll_size'] = (number) Size on the scroll request powering the update_by_query
279
+
* ['search_timeout'] = (number) Explicit timeout for each search request. Defaults to no timeout.
280
+
* ['search_type'] = (enum) Search operation type
281
+
* ['size'] = (number) Number of hits to return (default: 10)
282
+
* ['slices'] = (integer) The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks.
283
+
* ['sort'] = (array) A comma-separated list of <field>:<direction> pairs
284
+
* ['stats'] = (array) Specific 'tag' of the request for logging and statistical purposes
285
+
* ['terminate_after'] = (number) The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.
286
+
* ['timeout'] = (number) Time each individual bulk request should wait for shards that are unavailable.
287
+
* ['version'] = (bool) Specify whether to return document version as part of a hit
288
+
* ['wait_for_active_shards'] = (string) Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
289
+
* ['wait_for_completion'] = (bool) Should the request should block until the delete-by-query is complete.
0 commit comments