Example to implement search application, based on Rails 4, MongoDB, Elastic search, JSON-API