lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Poornima Jay <poornima...@rocketmail.com>
Subject Language detection for solr 3.6.1
Date Tue, 01 Jul 2014 13:23:46 GMT
Hi,

Can anyone please let me know how to integrate http://code.google.com/p/language-detection/
in solr 3.6.1. I want four languages (English, chinese simplified, chinese traditional, Japanes,
and Korean) to be added in one schema ie. multilingual search from single schema file.

I tried added solr-langdetect-3.5.0.jar in my /solr/contrib/langid/lib/ location and in /webapps/solr/WEB-INF/contrib/langid/lib/
and made changes in the solrconfig.xml as below

<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>

 <updateRequestProcessorChain name="langid">
    <processor class="org.apache.solr.update.processor.LangDetectLanguageIdentifierUpdateProcessorFactory">
    <lst name="invariants">
    <str name="langid.fl">content_eng</str>    
    <str name="langid.map">true</str>
    <str name="langid.map.fl">content_eng,content_ja</str>
    <str name="langid.whitelist">en,ja</str>
    <str name="langid.map.lcmap">en:english ja:japanese</str>
    <str name="langid.fallback">en</str>
    </lst>
    </processor>
  </updateRequestProcessorChain>
  
  <requestHandler name="/update" class="solr.UpdateRequestHandler">
    <lst name="defaults">
    <str name="update.chain">langid</str>
    </lst>
  </requestHandler>

Please suggest me the solution.

Thanks,
Poornima
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message