<%- facet %>
<% if(facets[facet]._type === 'terms') { %>
<% facets[facet].terms.forEach(function(term) { %>
- <%- term.term %> (<%- term.count %>)
<% }); %>
<% } %>
<% if(facets[facet]._type === 'date_histogram') { %>
<% facets[facet].entries.forEach(function(term) {
%>
- <%- prettyDate(new Date(term.time)) %> (<%- term.count %>)
<% }); %>
<% } %>