There is an ini setting that drives the value of $use_template_search.
When false, the php code of the view executes the search, and the template only displays results.
Otherwise, it is up to the template to do everything. This has the benefit of allowing extra parameters to be added to searches (eg. for drill-down searches, facets) handling them completely in template code.
Principal Consultant International Business
Member of the Community Project Board