<% var results = searchResultCollection.models; var numberOfHits = searchResultCollection.numberOfHits; var pager = searchResultCollection.pager; var hasNextPage = searchResultCollection.hasNextPage(); var hasPreviousPage = searchResultCollection.hasPreviousPage(); var searchInProgress = searchModel.get('searchInProgress'); var firstResultStart = searchModel.get('rows') * searchResultCollection.page; var query = hashModel.get('searchQuery'); var errors = searchResultCollection.errors; %>
<% if (errors && errors.search) { %>
<% } else if (!searchInProgress) { %>

Our search finds every document section that contains your query terms.

You may refine your search by using Boolean syntax:

Find Operator (case sensitive) Example
This phrase "" "R. v. Douglas"
All of these words AND permit AND hunting
Any of these words OR, no operator city municipality
Words within the same paragraph /p levy /p probate
Words within the same sentence /s tax /s income
Words within n words /n letter /5 credit
Exclude plurals and derivatives EXACT() EXACT(translator)
ALL possible ENDINGS * constitu*
<% } else if (numberOfHits === 0) { %>

Your search did not match any documents

Suggestions:

<% } else { %>
<%= numberOfHits %> results
<% n = firstResultStart + 1 %>
    <% _.each(results, function(resultModel) { %> <% result = resultModel.attributes %>
  1. <% ulToClose = 0 %> <% _.each(result.parentsDisplay, function(parent) { %> <% ulToClose++ %>
    • <%= parent %> <% }); %> <% if (result.labelAndTitle) { %>
      • <%= result.labelAndTitle %>
      <% } %> <% for (var i = 0 ; i < ulToClose ; i++) { %>
    <% } %>
    <% if (result.snippet) { %>

    <%= result.snippet %>

    <% } %>
  2. <% }); %>
<% } %> <% if (hasPreviousPage || hasNextPage) { %> <% } %>