The <hippo:facets> executes a faceted DASL query based on the location and stores the result in the var attribute.
| Attribute | Type | Required | Rtexprvalue | Description |
|---|---|---|---|---|
| location | String | true | true | The scope of the DASL query |
| var | String | true | false | The variable name in which the tag stores the result |
| query | String | false | true | Name of query class |
<hippo:facets location="/" var="result" query="org.mycompany.query.QueryImpl">
<hippo:queryParameter name="name" var="${param.name}"/>
<hippo:queryParameter name="address" var="${param.address}"/>
</hippo:facets>
<c:if test="${not (facetsCollection eq null)}">
<c:forEach var="facet" items="${facetsCollection}">
<b>Facet '${facet.name}'</b>
<ul>
<c:forEach var="facetValue" items="${facet.values}">
<li>${facetValue.value} (${facetValue.hits})</li>
</c:forEach>
</ul>
</c:forEach>
</c:if>