docs: def get_mapping(self, doc_type=None, indices=None, raw=False):
          """
          Register specific mapping definition for a specific type against one or more indices.
          (See :ref:`es-guide-reference-api-admin-indices-get-mapping`)
  
          """
          if doc_type is None and indices is None:
              path = make_path("_mapping")
              is_mapping = False
          else:
              indices = self.conn._validate_indices(indices)
              if doc_type:
                  path = make_path(','.join(indices), doc_type, "_mapping")
                  is_mapping = True
              else:
                  path = make_path(','.join(indices), "_mapping")
                  is_mapping = False
          result = self.conn._send_request('GET', path)
          if raw:
              return result
          from pyes.mappings import Mapper
          mapper = Mapper(result, is_mapping=False,
                          connection=self.conn,
                          document_object_field=self.conn.document_object_field)
          if doc_type:
              return mapper.mappings[doc_type]
          return mapper