11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

language identification and a field for the resulting language code.<br />

Configuring Tika Language Detection<br />

Here is an example of a minimal Tika langid configuration in solrconfig.xml:<br />

<br />

<br />

title,subject,text,keywords<br />

language_s<br />

<br />

<br />

Configuring LangDetect Language Detection<br />

Here is an example of a minimal LangDetect langid configuration in solrconfig.xml:<br />

<br />

<br />

title,subject,text,keywords<br />

language_s<br />

<br />

<br />

langid Parameters<br />

As previously mentioned, both implementations of the langid UpdateRequestProcessor take the same<br />

parameters.<br />

Parameter Type Default Required Description<br />

langid Boolean true no Enables and disables language<br />

detection.<br />

langid.fl string none yes A comma- or space-delimited list of fields<br />

to be processed by langid.<br />

langid.langField string none yes Specifies the field for the returned<br />

language code.<br />

langid.langsField<br />

multivalued<br />

string<br />

none no Specifies the field for a list of returned<br />

language codes. If you use langid.map<br />

.individual, each detected language<br />

will be added to this field.<br />

langid.overwrite Boolean false no Specifies whether the content of the lan<br />

gField and langsField fields will be<br />

overwritten if they already contain<br />

values.<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

233

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!