Hello,
is it possible to create dynamic facets with SOLR 5.0.0?
For instance, I would like to display the most-frequently occurring words in
the left-hand side of my Velocity SOLR GUI (facet_fields.vm).
Facet_fields.vm currently looks like this:
-----------------------------------------------
#**
* Display facets based on field values
* e.g.: fields specified by &facet.field=
*#
#if($response.facetFields)
<h2 #annTitle("Facets generated by adding &facet.field= to the request")>
##Field Facets
Results
</h2>
#foreach($field in $response.facetFields)
## Hide facets without value
#if($field.values.size() > 0)
<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 if > 0
#end ## end for each facet field
#end ## end if response has facet fields
------------------------------------------
Many thanks.
Philippe