saving to elastic search

using ruby rest client connect to elastic search