Move to solr 4 plus corrections to SparqlQueryExecutorTest with newlines and white space characters
This commit is contained in:
parent
b642f30391
commit
120be1e6b8
122 changed files with 17422 additions and 5288 deletions
23
solr/homeDirectoryTemplate/conf/velocity/facet_fields.vm
Normal file
23
solr/homeDirectoryTemplate/conf/velocity/facet_fields.vm
Normal file
|
@ -0,0 +1,23 @@
|
|||
#**
|
||||
* 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
|
||||
</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
|
Loading…
Add table
Add a link
Reference in a new issue