class Esearch::Cluster
Handle for an elasticsearch cluster
Constants
- PATH
Attributes
connection[R]
Return connection
@return [Connection]
@api private
Public Class Methods
connect(*args)
click to toggle source
Build connection
@return [Connection]
@api private
# File lib/esearch/cluster.rb, line 81 def self.connect(*args) new(Connection.build(*args)) end
Public Instance Methods
all_indices()
click to toggle source
Return handler for all indices
@return [Indices::All]
@api private
# File lib/esearch/cluster.rb, line 70 def all_indices Indices::All.new(connection) end
health(options = {})
click to toggle source
Return cluster health
@param [Hash] options
@return [Presenter::Health]
@api private
# File lib/esearch/cluster.rb, line 50 def health(options = {}) Command::Cluster::Health.run(self, options) end
index(name)
click to toggle source
Return handler for index
@param [String] name
@return [Index]
@api private
# File lib/esearch/cluster.rb, line 26 def index(name) Index.new(connection, name) end
indices(names)
click to toggle source
Return handler for indices
@param [Enumerable<String>] names
@return [Indices]
@api private
# File lib/esearch/cluster.rb, line 38 def indices(names) Indices.new(connection, names) end
path()
click to toggle source
Return path
@return [Pathname]
@api private
# File lib/esearch/cluster.rb, line 60 def path PATH end