aboutsummaryrefslogtreecommitdiffstats
path: root/isuifang_solr/solr/conf/velocity/facet_ranges.vm
diff options
context:
space:
mode:
Diffstat (limited to 'isuifang_solr/solr/conf/velocity/facet_ranges.vm')
-rw-r--r--isuifang_solr/solr/conf/velocity/facet_ranges.vm12
1 files changed, 12 insertions, 0 deletions
diff --git a/isuifang_solr/solr/conf/velocity/facet_ranges.vm b/isuifang_solr/solr/conf/velocity/facet_ranges.vm
new file mode 100644
index 0000000..8d26294
--- /dev/null
+++ b/isuifang_solr/solr/conf/velocity/facet_ranges.vm
@@ -0,0 +1,12 @@
+<h2 #annTitle("Facets generated by adding &facet.range= to the request")>Range Facets</h2>
+#foreach ($field in $response.response.facet_counts.facet_ranges)
+ #set($name = $field.key)
+ #set($display = "$name")
+ #set($f = $field.value.counts)
+ #set($start = $field.value.start)
+ #set($end = $field.value.end)
+ #set($gap = $field.value.gap)
+ #set($before = $field.value.before)
+ #set($after = $field.value.after)
+ #display_facet_range($f, $display, $name, $start, $end, $gap, $before, $after)
+#end \ No newline at end of file