lib/elasticsearch/api/actions/exists_source.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/exists_source.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -31,19 +31,20 @@
# @option arguments [List] :_source_includes A list of fields to extract and return from the _source field
# @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 [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/docs-get.html
#
def exists_source(arguments = {})
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = nil
+
+ arguments = arguments.clone
_id = arguments.delete(:id)
_index = arguments.delete(:index)