Displays the results of a search performed by the Brick River site search engine.
This helper is placed on a site page to display the results of search performed by the Brick River search engine. No parameters are used. The page containing the helper must contain an empty <div id="results"></div> for the placement (and optional styling) of search results.
Before creating and deploying a search results page, configure the site's Search Index Entries.
A search is performed when the page containing this helper is opened with the HTTP querystring in the format q=search term or terms.
For example, a page with the friendly name of searchresults, containing this code:
<form> <input type="text" name="q" value="@(Request.QueryString["q"])"/> <input type="submit" value="Search"/> </form> <div id="results"></div> @BRT.SearchResultsScript()
- when opened with this url: http:\\website.com\searchresults?q=brick river
- will return all searchable content that contains either "brick" or "river"