es = Elasticsearch()
j = 0
actions = []
while j <= 10:
    action = {'_index': 'tickets-index', '_type': 'tickets', '_id': j,
        '_source': {'any': 'data' + str(j), 'timestamp': datetime.now()}}
actions.append(action)
j += 1
helpers.bulk(es, actions)
How to use Bulk API to store the keywords in ES by using Python