Skip to content

Instantly share code, notes, and snippets.

@tsantero
Created September 4, 2013 19:33
Show Gist options
  • Save tsantero/6441745 to your computer and use it in GitHub Desktop.
Save tsantero/6441745 to your computer and use it in GitHub Desktop.
def put_index(index_name, key)
index = GSet.new
index.add(key)
object = self.bucket.new(index_name)
object.content_type = 'text/plain'
object.data = index.to_json
object.store(options={:returnbody => false})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment