def __init__(self, data, connection=None, is_mapping=False, document_object_field=None):
self.indices = OrderedDict()<EOL>self.mappings = OrderedDict()<EOL>self.is_mapping = is_mapping<EOL>self.connection = connection<EOL>self.full_mappings = False<EOL>self.document_object_field = document_object_field<EOL>self._process(data)<EOL>
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: