diff options
Diffstat (limited to 'isuifang_solr/solr/conf/velocity/facet_fields.vm')
-rw-r--r-- | isuifang_solr/solr/conf/velocity/facet_fields.vm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/isuifang_solr/solr/conf/velocity/facet_fields.vm b/isuifang_solr/solr/conf/velocity/facet_fields.vm new file mode 100644 index 0000000..91c50be --- /dev/null +++ b/isuifang_solr/solr/conf/velocity/facet_fields.vm @@ -0,0 +1,12 @@ +#if($response.facetFields) + <h2 #annTitle("Facets generated by adding &facet.field= to the request")>Field Facets</h2> + #foreach($field in $response.facetFields) + <span class="facet-field">$field.name</span> + + <ul> + #foreach($facet in $field.values) + <li><a href="#url_for_facet_filter($field.name, $facet.name)">$facet.name</a> ($facet.count)</li> + #end + </ul> + #end + #end
\ No newline at end of file |