Module: Swiftype::Client::Engine

Included in:
Swiftype::Client
Defined in:
lib/swiftype/client.rb

Overview

An Engine is a search engine that lets you search and filter the Documents it contains. For more information, see the REST API overview.

Instance Method Summary collapse

Instance Method Details

#create_engine(name) ⇒ Object


250
251
252
# File 'lib/swiftype/client.rb', line 250

def create_engine(name)
  post("engines.json", :engine => {:name => name})
end

#destroy_engine(engine_id) ⇒ Object


254
255
256
# File 'lib/swiftype/client.rb', line 254

def destroy_engine(engine_id)
  delete("engines/#{engine_id}.json")
end

#engine(engine_id) ⇒ Object


246
247
248
# File 'lib/swiftype/client.rb', line 246

def engine(engine_id)
  get("engines/#{engine_id}.json")
end

#enginesObject


242
243
244
# File 'lib/swiftype/client.rb', line 242

def engines
  get("engines.json")
end