Enable a specific map for an index and type

def map(self,index_name, index_type, map_value):
        '''
        Enable a specific map for an index and type
        '''
        request = self.session
        url = 'http://%s:%s/%s/%s/_mapping' % (self.host, self.port, index_name, index_type)
        content = { index_type : { 'properties' : map_value } }
        if self.verbose:
            print content
        response = request.put(url,content)
        return response