Class LangDetectLanguageIdentifierUpdateProcessorFactory

java.lang.Object
org.apache.solr.update.processor.UpdateRequestProcessorFactory
org.apache.solr.update.processor.LangDetectLanguageIdentifierUpdateProcessorFactory
All Implemented Interfaces:
LangIdParams, NamedListInitializedPlugin, SolrCoreAware

public class LangDetectLanguageIdentifierUpdateProcessorFactory extends UpdateRequestProcessorFactory implements SolrCoreAware, LangIdParams
Identifies the language of a set of input fields using http://code.google.com/p/language-detection

The UpdateProcessorChain config entry can take a number of parameters which may also be passed as HTTP parameters on the update request and override the defaults. Here is the simplest processor config possible:

 <processor class="org.apache.solr.update.processor.LangDetectLanguageIdentifierUpdateProcessorFactory">
   <str name="langid.fl">title,text</str>
   <str name="langid.langField">language_s</str>
 </processor>
 
See https://solr.apache.org/guide/solr/latest/indexing-guide/language-detection.html
Since:
3.5
  • Field Details

    • defaults

      protected org.apache.solr.common.params.SolrParams defaults
    • appends

      protected org.apache.solr.common.params.SolrParams appends
    • invariants

      protected org.apache.solr.common.params.SolrParams invariants
  • Constructor Details

    • LangDetectLanguageIdentifierUpdateProcessorFactory

      public LangDetectLanguageIdentifierUpdateProcessorFactory()
  • Method Details