I added the following to my configuration

  <lib dir="c:/projects/solrtest/dist/"
regex="apache-solr-clustering-.*\.jar" />




<requestHandler name="clusty" class="solr.SearchHandler" default="true">
  <lst name="defaults">
    <str name="echoParams">explicit</str>

    <bool name="clustering">true</bool>
    <str name="clustering.engine">default</str>
    <bool name="clustering.results">true</bool>

    <!-- Fields to cluster on -->
    <str name="carrot.title">title</str>
    <str name="carrot.snippet">all_text</str>
    <str name="hl.fl">all_text title</str>
     <!-- for this field, we want no fragmenting, just highlighting -->
     <str name="f.name.hl.fragsize">150</str>
  </lst>
  <arr name="last-components">
    <str>clustering</str>
  </arr>
</requestHandler>


 <searchComponent
class="org.apache.solr.handler.clustering.ClusteringComponent"
name="clustering">
  <lst name="engine">
    <str name="name">default</str>
    <str 
name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>

    <!-- Engine-specific parameters -->
    <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>
  </lst>
</searchComponent>

which ended up with the message solr java.lang.NoClassDefFoundError:
org/carrot2/core/ControllerFactory
and whenever I did a request I got a 404 response back and

SEVERE: REFCOUNT ERROR: unreferenced org.apache.solr.SolrCore@14db38a4 (core1)
has a reference count of 1
appeared in my console.

Any suggestions?

Thanks,
Bryan Rasmussen

Reply via email to