Skip to content

Instantly share code, notes, and snippets.

@bencrouse
Created June 4, 2012 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bencrouse/2869498 to your computer and use it in GitHub Desktop.
Save bencrouse/2869498 to your computer and use it in GitHub Desktop.
putting data into an index
data = { id: 'id', name: 'something' }
index = Tire::Index.new('index_name')
index.store(data)
index.refresh #(optionally)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment