Sha256: a05bf24fb3e220399a9ffad371c855d7b2dcfe35cb914a66576c0ef2814dac38

Contents?: true

Size: 540 Bytes

Versions: 4

Compression:

Stored size: 540 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)
        post("engines", :name => engine_name)
      end

      def destroy_engine(engine_name)
        delete("engines/#{engine_name}")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
swiftype-app-search-0.3.0 lib/swiftype-app-search/client/engines.rb
swiftype-app-search-0.2.0 lib/swiftype-app-search/client/engines.rb
swiftype-app-search-0.1.4 lib/swiftype-app-search/client/engines.rb
swiftype-app-search-0.1.3 lib/swiftype-app-search/client/engines.rb