Here’s the code for the “search” snippet I use:
{exp:search:simple_form result_page="site/results" no_result_page="site/no_results" channel="site|blog|collections|studies|funding|resources|topics" }
<div class="input-group">
<input type="text" class="form-control" alt="Site Search" placeholder="Search" name="keywords" id="keywords" search_in="everywhere">
<div class="input-group-btn">
<button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search"></span></button>
</div>
</div>
{/exp:search:simple_form}
“site” is a utility channel that holds various general pages (404, etc.).
Here’s the code for the results:
{exp:search:search_results}
{exp:stash:append_list name="results"}
{stash:title}{title}{/stash:title}
{stash:excerpt}{excerpt}{/stash:excerpt}
{stash:channel}{channel}{/stash:channel}
{stash:path}{auto_path}{/stash:path}
{/exp:stash:append_list}
{/exp:search:search_results}
Thanks for taking a look at this, folks, I definitely appreciate it.