File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
elasticsearch-api/lib/elasticsearch/api/actions Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module Actions
66 #
77 # @example
88 #
9- # client.exists index: 'myindex', type: 'mytype', id: '1'
9+ # client.exists? index: 'myindex', type: 'mytype', id: '1'
1010 #
1111 # @option arguments [String] :id The document ID (*Required*)
1212 # @option arguments [String] :index The name of the index (*Required*)
@@ -20,7 +20,7 @@ module Actions
2020 #
2121 # @see http://elasticsearch.org/guide/reference/api/get/
2222 #
23- def exists ( arguments = { } )
23+ def exists? ( arguments = { } )
2424 raise ArgumentError , "Required argument 'id' missing" unless arguments [ :id ]
2525 raise ArgumentError , "Required argument 'index' missing" unless arguments [ :index ]
2626 arguments [ :type ] ||= UNDERSCORE_ALL
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module Actions
77 #
88 # @example Check whether index alias named _myalias_ exists
99 #
10- # client.indices.exists_alias name: 'myalias'
10+ # client.indices.exists_alias? name: 'myalias'
1111 #
1212 # @option arguments [List] :index A comma-separated list of index names to filter aliases
1313 # @option arguments [List] :name A comma-separated list of alias names to return
@@ -25,7 +25,7 @@ module Actions
2525 #
2626 # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/
2727 #
28- def exists_alias ( arguments = { } )
28+ def exists_alias? ( arguments = { } )
2929 valid_params = [
3030 :ignore_indices ,
3131 :ignore_unavailable ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module Actions
2222 #
2323 # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-types-exists/
2424 #
25- def exists_type ( arguments = { } )
25+ def exists_type? ( arguments = { } )
2626 raise ArgumentError , "Required argument 'index' missing" unless arguments [ :index ]
2727 raise ArgumentError , "Required argument 'type' missing" unless arguments [ :type ]
2828 valid_params = [
You can’t perform that action at this time.
0 commit comments