Ruby on Rails integeration with Elasticsearch