class Esearch::Index

Driver for specific index

Attributes

connection[R]

Return connection

@return [Connection]

@api private

Public Instance Methods

create(settings) click to toggle source

Cretate remote index

@param [Hash] settings

@return [Presenter::Index::Create]

@api private

# File lib/esearch/index.rb, line 25
def create(settings)
  Command::Index::Create.run(self, settings)
end
delete() click to toggle source

Delete remote index

@return [Presenter::Index::Delete]

@api private

# File lib/esearch/index.rb, line 35
def delete
  Command::Index::Delete.run(self)
end
path() click to toggle source

Return path

@return [Pathname]

@api private

# File lib/esearch/index.rb, line 57
def path
  Pathname.new("/#{name}")
end
type(name) click to toggle source

Return type for index

@param [String] name

@return [Type]

@api private

# File lib/esearch/index.rb, line 47
def type(name)
  Type.new(self, name)
end