lib/elasticsearch/api/actions/exists.rb in elasticsearch-api-7.13.3 vs lib/elasticsearch/api/actions/exists.rb in elasticsearch-api-7.14.0.pre
- old
+ new
@@ -38,11 +38,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.13/docs-get.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.14/docs-get.html
#
def exists(arguments = {})
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
@@ -70,9 +70,10 @@
perform_request(method, path, params, body, headers).status == 200 ? true : false
end
end
alias_method :exists?, :exists
+
# Register this action with its valid params when the module is loaded.
#
# @since 6.2.0
ParamsRegistry.register(:exists, [
:stored_fields,