class Esearch::Type

Interface to a specific elasticsearch type

Public Instance Methods

connection() click to toggle source

Return connection

@return [Faraday::Connection]

@api private

# File lib/esearch/type.rb, line 27
def connection
  es_index.connection
end
document(id) click to toggle source

Return document handler

@param [String] id

@return [Document]

@api private

# File lib/esearch/type.rb, line 17
def document(id)
  Document.new(self, id)
end
path() click to toggle source

Return path

@return [Pathname]

@api private

# File lib/esearch/type.rb, line 37
def path
  es_index.path.join(name)
end