diff options
| author | Eleanor Eng <eleanor_eng@brown.edu> | 2019-08-06 10:54:33 -0400 |
|---|---|---|
| committer | Eleanor Eng <eleanor_eng@brown.edu> | 2019-08-06 10:54:33 -0400 |
| commit | b7194d88ba9733413063c7f371dedefd3a97e35f (patch) | |
| tree | 418203fe1ee1f4aa0771c555ab672541cc775473 /solr-8.1.1/example/files/conf/velocity/facets.vm | |
| parent | 2c4440be2807b3b1da691ea04b061c35e50ecb72 (diff) | |
| parent | 298d1c9b29d6ce2171fd9ac8274b64583b73f6f5 (diff) | |
merge with master
Diffstat (limited to 'solr-8.1.1/example/files/conf/velocity/facets.vm')
| -rw-r--r-- | solr-8.1.1/example/files/conf/velocity/facets.vm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/solr-8.1.1/example/files/conf/velocity/facets.vm b/solr-8.1.1/example/files/conf/velocity/facets.vm new file mode 100644 index 000000000..bb27b5cea --- /dev/null +++ b/solr-8.1.1/example/files/conf/velocity/facets.vm @@ -0,0 +1,24 @@ +#if($response.facetFields.size() > 0) + #foreach($field in $response.facetFields) + #if($field.values.size() > 0) + #if($engine.resourceExists("facet_${field.name}.vm")) + #parse("facet_${field.name}.vm") + #else + <div id="facet_$field.name" class="facet_field"> + <span class="facet-field">#label("facet.${field.name}",$field.name)</span><br/> + + <ul> + #foreach($facet in $field.values) + <li><a href="#url_for_facet_filter($field.name, $facet.name)">#if($facet.name!=$null)#label("${field.name}.${facet.name}","${field.name}.${facet.name}")#else<em>missing</em>#end</a> ($facet.count)</li> + #end + </ul> + </div> + #end + #end + #end ## end if field.values > 0 +#end ## end if facetFields > 0 + + + + + |
