def search
      engine  =  BentoSearch.get_engine(params[:engine_id])
      # put it in an iVar mainly for testing purposes.
      @engine = engine


      unless engine.configuration.allow_routable_results == true
        raise AccessDenied.new("engine needs to be registered with :allow_routable_results => true")
      end

      @results         = engine.search safe_search_args(engine, params)
      # template name of a partial with 'yield' to use to wrap the results
      @partial_wrapper = @results.display_configuration.lookup!("ajax.wrapper_template")

      # partial HTML results
      render "bento_search/search/search", :layout => false

    end
def search
      engine  =  BentoSearch.get_engine(params[:engine_id])
      # put it in an iVar mainly for testing purposes.
      @engine = engine


      unless engine.configuration.allow_routable_results == true
        raise AccessDenied.new("engine needs to be registered with :allow_routable_results => true")
      end

      @results         = engine.search safe_search_args(engine, params)
      # template name of a partial with 'yield' to use to wrap the results
      @partial_wrapper = @results.display_configuration.lookup!("ajax.wrapper_template")

      # partial HTML results
      render "bento_search/search/search", :layout => false

    end
returns partial HTML results, suitable for
 AJAX to insert into DOM.
 arguments for engine.search are taken from URI request params, whitelisted