public class OpenNLPLangDetectUpdateProcessorFactory extends UpdateRequestProcessorFactory implements SolrCoreAware
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
UpdateRequestProcessorFactory.RunAlways| Modifier and Type | Field and Description |
|---|---|
protected SolrParams |
appends |
protected SolrParams |
defaults |
protected SolrParams |
invariants |
| Constructor and Description |
|---|
OpenNLPLangDetectUpdateProcessorFactory() |
| Modifier and Type | Method and Description |
|---|---|
UpdateRequestProcessor |
getInstance(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
void |
inform(SolrCore core) |
void |
init(NamedList args) |
protected SolrParams defaults
protected SolrParams appends
protected SolrParams invariants
public OpenNLPLangDetectUpdateProcessorFactory()
public void init(NamedList args)
init in interface NamedListInitializedPlugininit in class UpdateRequestProcessorFactorypublic UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance in class UpdateRequestProcessorFactorypublic void inform(SolrCore core)
inform in interface SolrCoreAwareCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.