1 #if($response.facetFields)
2 <h2 #annTitle("Facets generated by adding &facet.field= to the request")>Field Facets</h2>
3 #foreach($field in $response.facetFields)
4 ## Hide facets without value
5 #if($field.values.size() > 0)
6 <span class="facet-field">$field.name</span>
9 #foreach($facet in $field.values)
10 <li><a href="#url_for_facet_filter($field.name, $facet.name)">$facet.name</a> ($facet.count)</li>