def register_mapping_type(cls):
 _search_mapping_types[cls.get_mapping_type_name()] = cls
 return cls

def register_mapping_type ( cls ) : _search_mapping_types [ cls . get_mapping_type_name ( ) ] = cls return cls
class decorator for registering mappingtypes for search .