<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <% if(SearchUtil.getFacetQueryTotalCount(queryLabelName, rsp.getFacetQuery()) > 0){ %> <% String[][] queriesArray = SearchUtil.getFacetQueries().get(queryLabelName); %> <h2><%=queryLabelName %></h2> <div> <% Map<String, Integer> facetQueriesMap = rsp.getFacetQuery(); if(facetQueriesMap != null){ for(int i=0;i<queriesArray.length;i++){ if(facetQueriesMap.containsKey(queriesArray[i][0])){ int count = facetQueriesMap.get(queriesArray[i][0]).intValue(); if(count > 0){ String linkStr = SearchUtil.getLinkStr(query,fq, queriesArray[i][0], 0); %> <a href="./index.html<%=linkStr%>"><%=queriesArray[i][1]%>(<%=count%>)</a><br> <% } } } } } %> </div>