'Performs insert operation on single index
:param index: index to perform operation
:param data: new data
:param doc_id: document id'

def _single_insert_index(self, index, data, doc_id):

    try:
        should_index = index.make_key_value(data)
    except Exception as ex:
        warnings.warn(('Problem    during    insert    for    `%s`,    ex    =    `%r`,    you    should    check    index    code.' % (index.name, ex)), RuntimeWarning)
        should_index = None
    if should_index:
        (key, value) = should_index
        index.insert_with_storage(doc_id, key, value)
