def index_for(_type):
 try:
  _type_n = _normalize_type(_type)
  return _INDICES[_type_n]()
 except KeyError as ke:
  log.warn(('Unknown search type: %s' % _type))
  return NoopSearchIndex()

def index_for ( _type ) : try : _type_n = _normalize_type ( _type ) return _INDICES [ _type_n ] ( ) except KeyError as ke : log . warn ( ( 'Unknown search type: %s' % _type ) ) return NoopSearchIndex ( )
get a searchindex instance sub-class suitable for the specified type .