Skip to content

Instantly share code, notes, and snippets.

@mykoweb
Created December 20, 2016 07:54
Show Gist options
  • Save mykoweb/90bf9889338cbd1028dda60515861ab3 to your computer and use it in GitHub Desktop.
Save mykoweb/90bf9889338cbd1028dda60515861ab3 to your computer and use it in GitHub Desktop.
require 'json'
require 'elasticsearch'
client = Elasticsearch::Client.new hosts: 'http://localhost:9200'
# Test that Elasticsearch is up
client.info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment