lib/elasticsearch/api/actions/index.rb in elasticsearch-api-7.9.0 vs lib/elasticsearch/api/actions/index.rb in elasticsearch-api-7.10.0.pre

- old
+ new

@@ -31,19 +31,20 @@ # @option arguments [Number] :version Explicit version number for concurrency control # @option arguments [String] :version_type Specific version type (options: internal, external, external_gte) # @option arguments [Number] :if_seq_no only perform the index operation if the last operation that has changed the document has the specified sequence number # @option arguments [Number] :if_primary_term only perform the index operation if the last operation that has changed the document has the specified primary term # @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with + # @option arguments [Boolean] :require_alias When true, requires destination to be an alias. Default is false # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body The document (*Required*) # # *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.9/docs-index_.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-index_.html # def index(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] @@ -84,10 +85,11 @@ :timeout, :version, :version_type, :if_seq_no, :if_primary_term, - :pipeline + :pipeline, + :require_alias ].freeze) end end end