Class OpenNLPLangDetectUpdateProcessorFactory

  • All Implemented Interfaces:
    NamedListInitializedPlugin, SolrCoreAware

    public class OpenNLPLangDetectUpdateProcessorFactory
    extends UpdateRequestProcessorFactory
    implements SolrCoreAware
    Identifies the language of a set of input fields using Apache OpenNLP.

    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.OpenNLPLangDetectUpdateProcessorFactory">
       <str name="langid.fl">title,text</str>
       <str name="langid.langField">language_s</str>
       <str name="langid.model">langdetect-183.bin</str>
     </processor>
     
    See http://wiki.apache.org/solr/LanguageDetection
    Since:
    7.3.0