'Function helper for fast inserting
:param header: a string with the bulk header must be ended with a newline
:param document: a json document string must be ended with a newline'

def index_raw_bulk(self, header, document):

    self.bulker.add(('%s%s' % (header, document)))
    return self.flush_bulk()
