def bulk_add(docs)
      body = docs.map do |doc|
        {
          index: {
            _index: @index_name,
            _type: doc[:ingestType],
            _id:  doc[:id],
            data: doc
          }
        }
      end
      @elasticsearch.bulk body: body
    end
def bulk_add(docs)
      body = docs.map do |doc|
        {
          index: {
            _index: @index_name,
            _type: doc[:ingestType],
            _id:  doc[:id],
            data: doc
          }
        }
      end
      @elasticsearch.bulk body: body
    end
@param [Hash] opts

 Options used by this class:
   - index_name [String]  The name of the ElasticSearch index
 Other options are passed along to Elasticsearch::Client.


 Add a number of JSON documents to the search index at once.
 @param docs [Array] Array of hashes that can be serialized with #to_json