Sha256: 7b8fa3e1a84d39745a982c2176d1ccbcaa49ca191819094c6aa5402f8c50954b

Contents?: true

Size: 562 Bytes

Versions: 5

Compression:

Stored size: 562 Bytes

Contents

#**
 *  Check if Clustering is Enabled and then
 *  call cluster_results.vm
 *#

<h2 #annTitle("Clusters generated by Carrot2 using the /clustering RequestHandler")>
  Clusters
</h2>

## Div tag has placeholder text by default
<div id="clusters">
  Run Solr with java -Dsolr.clustering.enabled=true -jar start.jar to see clustered search results.
</div>

## Replace the div content *if* Carrot^2 is available
<script type="text/javascript">
  $('#clusters').load("#url_for_solr/clustering#lens",
    {'wt':'velocity', 'v.template':"cluster_results"});
</script>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_solr_client-0.2.1 solr_sample_core/conf/velocity/cluster.vm
simple_solr_client-0.2.0 solr_sample_core/conf/velocity/cluster.vm
simple_solr_client-0.1.2 solr_sample_core/conf/velocity/cluster.vm
simple_solr_client-0.1.1 solr_sample_core/conf/velocity/cluster.vm
simple_solr_client-0.1.0 solr_sample_core/conf/velocity/cluster.vm