Created
March 20, 2013 18:34
-
-
Save florida/5207235 to your computer and use it in GitHub Desktop.
Creating documents in swiftype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
engine = Swiftype::Engine.find('engine-slug') | |
type = engine.document_type('books') | |
type.create_document({ | |
:external_id => id | |
:fields}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment