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



244
245
246
# File 'lib/swiftype/client.rb', line 244

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

#destroy_engine(engine_id) ⇒ Object



248
249
250
# File 'lib/swiftype/client.rb', line 248

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

#engine(engine_id) ⇒ Object



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

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

#enginesObject



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

def engines
  get("engines.json")
end