lib/elasticsearch/api/actions/indices/exists.rb in elasticsearch-api-1.0.7 vs lib/elasticsearch/api/actions/indices/exists.rb in elasticsearch-api-1.0.9
- old
+ new
@@ -5,10 +5,10 @@
# Return true if the index (or all indices in a list) exists, false otherwise.
#
# @example Check whether index named _myindex_ exists
#
- # client.indices.exists index: 'myindex'
+ # client.indices.exists? index: 'myindex'
#
# @option arguments [List] :index A comma-separated list of indices to check (*Required*)
# @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)