Permalink
Switch branches/tags
Nothing to show
Find file Copy path
dbd39e8 May 8, 2013
1 contributor

Users who have contributed to this file

77 lines (74 sloc) 3 KB
<?xml version="1.0" encoding="UTF-8" ?>
<config>
<lib dir="${user.dir}/../contrib/analysis-extras/lucene-libs/" />
<lib dir="${user.dir}/../contrib/analysis-extras/lib/" />
<lib dir="${user.dir}/../dist/" regex="solr-langid-.*\.jar" />
<lib dir="${user.dir}/../contrib/langid/lib/" />
<luceneMatchVersion>LUCENE_43</luceneMatchVersion>
<requestDispatcher handleSelect="false">
<httpCaching never304="true" />
</requestDispatcher>
<requestHandler name="/select" class="solr.SearchHandler" >
<lst name="defaults">
<str name="defType">edismax</str>
<str name="qf">addr_from^10 addr_to addr_cc subject message</str>
<str name="df">text</str>
<str name="wt">ruby</str>
<str name="indent">true</str>
<str name="f.subject.qf">subject_en subject_ru</str>
<str name="f.message.qf">message_en message_ru</str>
</lst>
</requestHandler>
<requestHandler name="/selectEN" class="solr.SearchHandler" >
<lst name="defaults">
<str name="defType">edismax</str>
<str name="qf">addr_from^10 addr_to addr_cc subject message</str>
<str name="df">text</str>
<str name="wt">ruby</str>
<str name="indent">true</str>
</lst>
<lst name="invariants">
<str name="fq">language:en</str>
<str name="f.subject.qf">subject_en</str>
<str name="f.message.qf">message_en</str>
<str name="uf">* -subject_* -message_*</str>
<str name="fl">*,subject:subject_en,message:message_en</str>
</lst>
</requestHandler>
<requestHandler name="/selectRU" class="solr.SearchHandler" >
<lst name="defaults">
<str name="defType">edismax</str>
<str name="qf">addr_from^10 addr_to addr_cc subject message</str>
<str name="df">text</str>
<str name="wt">ruby</str>
<str name="indent">true</str>
</lst>
<lst name="invariants">
<str name="fq">language:ru</str>
<str name="f.subject.qf">subject_ru</str>
<str name="f.message.qf">message_ru</str>
<str name="uf">* -subject_* -message_*</str>
<str name="fl">*,subject:subject_ru,message:message_ru</str>
</lst>
</requestHandler>
<requestHandler name="/update" class="solr.UpdateRequestHandler" >
<lst name="invariants">
<str name="update.chain">languages</str>
</lst>
</requestHandler>
<requestHandler name="/admin" class="solr.admin.AdminHandlers" />
<requestHandler name="/analysis/field" class="solr.FieldAnalysisRequestHandler" startup="lazy" />
<updateRequestProcessorChain name="languages">
<processor class="solr.LangDetectLanguageIdentifierUpdateProcessorFactory">
<lst name="invariants">
<str name="langid.fl">subject,message</str>
<str name="langid.whitelist">en,ru</str>
<str name="langid.fallback">en</str>
<str name="langid.langField">language</str>
<bool name="langid.map">true</bool>
<bool name="langid.map.keepOrig">false</bool>
</lst>
</processor>
<processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>
</config>