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
- #create_engine(name) ⇒ Object
- #destroy_engine(engine_id) ⇒ Object
- #engine(engine_id) ⇒ Object
- #engines ⇒ Object
Instance Method Details
#create_engine(name) ⇒ Object
260 261 262 |
# File 'lib/swiftype/client.rb', line 260 def create_engine(name) post("engines.json", :engine => {:name => name}) end |
#destroy_engine(engine_id) ⇒ Object
264 265 266 |
# File 'lib/swiftype/client.rb', line 264 def destroy_engine(engine_id) delete("engines/#{engine_id}.json") end |
#engine(engine_id) ⇒ Object
256 257 258 |
# File 'lib/swiftype/client.rb', line 256 def engine(engine_id) get("engines/#{engine_id}.json") end |
#engines ⇒ Object
252 253 254 |
# File 'lib/swiftype/client.rb', line 252 def engines get("engines.json") end |