lib/elasticsearch/api/actions/update_by_query.rb in elasticsearch-api-7.8.1 vs lib/elasticsearch/api/actions/update_by_query.rb in elasticsearch-api-7.9.0.pre

- old
+ new

@@ -25,26 +25,30 @@ # @option arguments [List] :type A comma-separated list of document types to search; leave empty to perform the operation on all types # @option arguments [String] :analyzer The analyzer to use for the query string # @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false) # @option arguments [String] :default_operator The default operator for query string query (AND or OR) # (options: AND,OR) + # @option arguments [String] :df The field to use as default where no field prefix is given in the query string # @option arguments [Number] :from Starting offset (default: 0) # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) # @option arguments [String] :conflicts What to do when the update by query hits version conflicts? # (options: abort,proceed) + # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. # (options: open,closed,hidden,none,all) + # @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored # @option arguments [String] :pipeline Ingest pipeline to set on index requests made by this action. (default: none) # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) # @option arguments [String] :q Query in the Lucene query string syntax # @option arguments [List] :routing A comma-separated list of specific routing values # @option arguments [Time] :scroll Specify how long a consistent view of the index should be maintained for scrolled search # @option arguments [String] :search_type Search operation type # (options: query_then_fetch,dfs_query_then_fetch) + # @option arguments [Time] :search_timeout Explicit timeout for each search request. Defaults to no timeout. # @option arguments [Number] :size Deprecated, please use `max_docs` instead # @option arguments [Number] :max_docs Maximum number of documents to process (default: all documents) # @option arguments [List] :sort A comma-separated list of <field>:<direction> pairs # @option arguments [List] :_source True or false to return the _source field or not, or a list of fields to return @@ -68,11 +72,11 @@ # *Deprecation notice*: # Specifying types in urls has been deprecated # Deprecated since version 7.0.0 # # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/docs-update-by-query.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/docs-update-by-query.html # def update_by_query(arguments = {}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] headers = arguments.delete(:headers) || {} @@ -86,11 +90,11 @@ method = Elasticsearch::API::HTTP_POST path = if _index && _type "#{Utils.__listify(_index)}/#{Utils.__listify(_type)}/_update_by_query" else "#{Utils.__listify(_index)}/_update_by_query" - end + end params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) body = arguments[:body] perform_request(method, path, params, body, headers).body end @@ -134,7 +138,7 @@ :wait_for_completion, :requests_per_second, :slices ].freeze) end - end + end end