Hi,
I tried to implement language detection in SOLR 3.5.

I added the processor class for langDetect in solrconfig.xml :

<updateRequestProcessorChain name="langid">
       <processor
class="org.apache.solr.update.processor.LangDetectLanguageIdentifierUpdateProcessorFactory">
         <str name="langid.fl">cContent</str>
         <str name="langid.langField">language</str>
         <str name="langid.fallback">en</str>
       </processor>
       <processor class="solr.LogUpdateProcessorFactory" />
       <processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>

  <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" >
<lst name="defaults">
<str name="update.chain">langid</str>
</lst>
</requestHandler>

I declared the filed "language" in the schema as the output field for the
detected language code :

the field declaration : <field name="language" type="string"
indexed="true"  stored="true"  multiValued="false"/>

Now when i start my solr it gives an exception :

org.apache.solr.common.SolrException: Error loading class
'org.apache.solr.update.processor.LangDetectLanguageIdentifierUpdateProcessorFactory'
Caused by: java.lang.ClassNotFoundException:
org.apache.solr.update.processor.LangDetectLanguageIdentifierUpdateProcessorFactory

Is there anything that I am doing wrong?

Thanks in advance

Ankita

Reply via email to