aboutsummaryrefslogtreecommitdiff
path: root/solr-8.3.1/example/files/conf/velocity/facet_text_shingles.vm
diff options
context:
space:
mode:
Diffstat (limited to 'solr-8.3.1/example/files/conf/velocity/facet_text_shingles.vm')
-rw-r--r--solr-8.3.1/example/files/conf/velocity/facet_text_shingles.vm12
1 files changed, 12 insertions, 0 deletions
diff --git a/solr-8.3.1/example/files/conf/velocity/facet_text_shingles.vm b/solr-8.3.1/example/files/conf/velocity/facet_text_shingles.vm
new file mode 100644
index 000000000..e8191779a
--- /dev/null
+++ b/solr-8.3.1/example/files/conf/velocity/facet_text_shingles.vm
@@ -0,0 +1,12 @@
+<div id="facet_$field.name">
+ <span class="facet-field">$resource.facet.top_phrases</span><br/>
+
+ <ul id="tagcloud">
+ #foreach($facet in $sort.sort($field.values,"name"))
+ <li data-weight="$math.mul($facet.count,1)">
+ <a href="#url_for_facet_filter($field.name, $facet.name)">$facet.name</a>
+ </li>
+
+ #end
+ </ul>
+</div>