'Create a mapper object
:param data: a dict containing the mappings
:param connection: a connection object
:param is_mapping: if it\'s a mapping or index/mapping
:param document_object_field: the kind of object to be used for document object Field
:return:'

def __init__(self, data, connection=None, is_mapping=False, document_object_field=None):

    self.indices = OrderedDict()
    self.mappings = OrderedDict()
    self.is_mapping = is_mapping
    self.connection = connection
    self.full_mappings = False
    self.document_object_field = document_object_field
    self._process(data)
