Sha256: e44d3673735caef3a0ca173c77fef2572456172b9520ef19e72e78f5789274aa
Contents?: true
Size: 686 Bytes
Versions: 7
Compression:
Stored size: 686 Bytes
Contents
# Engines are the core concept representing indexes in App Search. # module Elastic module AppSearch class Client module Engines def list_engines(current: 1, size: 20) get("engines", :page => { :current => current, :size => size }) end def get_engine(engine_name) get("engines/#{engine_name}") end def create_engine(engine_name, language = nil) params = { :name => engine_name } params[:language] = language if language post("engines", params) end def destroy_engine(engine_name) delete("engines/#{engine_name}") end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems