Hi, I made few changes to the solrconfig.xml, created a jar file,added it to the lib folder of the solr and tried to start it.
THe changes in the solrconfig.xml are <updateRequestProcessorChain name="mahoutclassifier" default="true"> <processor class="com.mahout.solr.classifier.CategorizeDocumentFac"> <str name="inputField">LEAD_NOTES</str> <str name="outputField">category</str> <str name="defaultCategory">Others</str> <str name="model">naiveBayesModel</str> </processor> <processor class="solr.RunUpdateProcessorFactory"/> <processor class="solr.LogUpdateProcessorFactory"/> </updateRequestProcessorChain> <requestHandler name="/update/csv" class="solr.CSVRequestHandler"> <lst name="defaults"> <str name="stream.contentType">application/csv</str> <str name="update.processor">mahoutclassifier</str> </lst> </requestHandler> I attahced the class file. But i get the following error. org.apache.solr.common.SolrException: Error Instantiating UpdateRequestProcessorFactory, com.mahout.solr.classifier.CategorizeDocumentFactory failed to instantiate org.apache.solr.update.processor.UpdateRequestProcessorFactory at org.apache.solr.core.SolrCore.<init>(SolrCore.java:834) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:625) at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:522) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:557) at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:247) at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:239) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.solr.common.SolrException: Error Instantiating UpdateRequestProcessorFactory, com.mahout.solr.classifier.CategorizeDocumentFactory failed to instantiate org.apache.solr.update.processor.UpdateRequestProcessorFactory at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:547) at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:582) at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2144) at org.apache.solr.update.processor.UpdateRequestProcessorChain.init(UpdateRequestProcessorChain.java:119) at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:584) at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2128) at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2122) at org.apache.solr.core.SolrCore.loadUpdateProcessorChains(SolrCore.java:906) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:766) ... 13 more Caused by: java.lang.ClassCastException: class com.mahout.solr.classifier.CategorizeDocumentFactory at java.lang.Class.asSubclass(Unknown Source) at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:433) at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:381) at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:526) ... 21 more Thanks, Subbu