Newer
Older
TalkjaSolr / web / WEB-INF / jsp / _facet_field.jsp
@haya4 haya4 on 22 Apr 2022 588 bytes restore
  1. <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
  2. <%
  3. if(facetField != null){
  4. List<Count> facetCountList = facetField.getValues();
  5. %>
  6. <h2><%=SearchUtil.getFacetLabel(facetField.getName()) %></h2>
  7. <div id="<%=facetField.getName()%>">
  8. <%
  9. if(facetCountList != null){
  10. for(Count count : facetCountList){
  11. String linkStr = SearchUtil.getLinkStr(query,fq, facetField.getName()+":"+count.getName(), 0);
  12. %>
  13. <a href="./index.html<%=linkStr%>"><%=StringEscapeUtils.escapeHtml(count.getName())%>(<%=count.getCount()%>)</a><br>
  14. <%
  15. }
  16. }
  17. }
  18. %>
  19. </div>