Sha256: 013b04b6de2ac701079f21e3abe8bdbd9c8868190f117246b2814eb4f97ab0b9
Contents?: true
Size: 633 Bytes
Versions: 7
Compression:
Stored size: 633 Bytes
Contents
# Engines are the core concept representing indexes in App Search. # module SwiftypeAppSearch 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
Version data entries
7 entries across 7 versions & 1 rubygems