Sha256: 436d1e56cb9c8c08cbe5b14cbf0d1cf2e8969a994b6e7755c196e54b29995dae
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
# frozen_string_literal: true module Esse module Backend class Index module InstanceMethods # Checks the index existance. Returns true or false # # UsersIndex.backend.exist? #=> true # # @param options [Hash] Options hash # @option options [String, nil] :suffix The index suffix. Defaults to the index_version. # Use nil if you want to check existence of the `index_name` index or alias. def exist?(suffix: index_version) client.indices.exists(index: index_name(suffix: suffix)) end end include InstanceMethods end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
esse-0.0.5 | lib/esse/backend/index/existance.rb |
esse-0.0.4 | lib/esse/backend/index/existance.rb |