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



237
238
239
# File 'lib/swiftype/client.rb', line 237

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

#destroy_engine(engine_id) ⇒ Object



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

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

#engine(engine_id) ⇒ Object



233
234
235
# File 'lib/swiftype/client.rb', line 233

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

#enginesObject



229
230
231
# File 'lib/swiftype/client.rb', line 229

def engines
  get("engines.json")
end