<% var results = collection.models; var numberOfHits = collection.numberOfHits; var query = model.get('query'); var firstResultStart = model.get('rows') * collection.page; %>
<% if (collection.errors.length > 0) { %>
<% } else if (collection.warnings.length > 0) { %>
<% } %> <% if (numberOfHits === 0 && query !== "") { %>

Your search did not match any documents

Suggestions:

<% } else { %>

<%= numberOfHits %> results

<% n = firstResultStart + 1 %>
    <% qweriLodash.each(results, function(resultModel) { %> <% var result = resultModel.attributes; var displayTitle = "Untitled"; var displayTitleClass = " untitled"; if (!qweriLodash.isEmpty(result.documentTitle)) { displayTitle = result.documentTitle; displayTitleClass = ""; } %>
  1. <%= displayTitle %>
    <% if (result.snippet) { %>

    <%= result.snippet %>

    <% } %> <% if (result.type === 'NOTE' && !qweriLodash.isEmpty(query)) { %>
    By <%= result.annotationUsername %>
    <% } %>
  2. <% }); %>
<% } %>