def get_product_search_handler_class():
 if (settings.OSCAR_PRODUCT_SEARCH_HANDLER is not None):
  return import_string(settings.OSCAR_PRODUCT_SEARCH_HANDLER)
 if is_solr_supported():
  return get_class('catalogue.search_handlers', 'ProductSearchHandler')
 elif is_elasticsearch_supported():
  return get_class('catalogue.search_handlers', 'ESProductSearchHandler')
 else:
  return get_class('catalogue.search_handlers', 'SimpleProductSearchHandler')

def get_product_search_handler_class ( ) : if ( settings . OSCAR_PRODUCT_SEARCH_HANDLER is not None ) : return import_string ( settings . OSCAR_PRODUCT_SEARCH_HANDLER ) if is_solr_supported ( ) : return get_class ( 'catalogue.search_handlers' , 'ProductSearchHandler' ) elif is_elasticsearch_supported ( ) : return get_class ( 'catalogue.search_handlers' , 'ESProductSearchHandler' ) else : return get_class ( 'catalogue.search_handlers' , 'SimpleProductSearchHandler' )
determine the search handler to use .