public class LangDetectLanguageIdentifierUpdateProcessorFactory extends UpdateRequestProcessorFactory implements SolrCoreAware, LangIdParams
<processor class="org.apache.solr.update.processor.LangDetectLanguageIdentifierUpdateProcessorFactory"> <str name="langid.fl">title,text</str> <str name="langid.langField">language_s</str> </processor>See http://wiki.apache.org/solr/LanguageDetection
Modifier and Type | Field and Description |
---|---|
protected SolrParams |
appends |
protected SolrParams |
defaults |
protected SolrParams |
invariants |
DOCID_FIELD_DEFAULT, DOCID_LANGFIELD_DEFAULT, DOCID_LANGSFIELD_DEFAULT, DOCID_PARAM, DOCID_THRESHOLD_DEFAULT, ENFORCE_SCHEMA, FALLBACK, FALLBACK_FIELDS, FIELDS_PARAM, LANG_FIELD, LANG_WHITELIST, LANGS_FIELD, LANGUAGE_ID, MAP_ENABLE, MAP_FL, MAP_INDIVIDUAL, MAP_INDIVIDUAL_FL, MAP_KEEP_ORIG, MAP_LCMAP, MAP_OVERWRITE, MAP_PATTERN, MAP_PATTERN_DEFAULT, MAP_REPLACE, MAP_REPLACE_DEFAULT, OVERWRITE, THRESHOLD
Constructor and Description |
---|
LangDetectLanguageIdentifierUpdateProcessorFactory() |
Modifier and Type | Method and Description |
---|---|
UpdateRequestProcessor |
getInstance(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
void |
inform(SolrCore core) |
void |
init(NamedList args)
The UpdateRequestProcessor may be initialized in solrconfig.xml similarly
to a RequestHandler, with defaults, appends and invariants.
|
static void |
loadData() |
protected SolrParams defaults
protected SolrParams appends
protected SolrParams invariants
public LangDetectLanguageIdentifierUpdateProcessorFactory()
public void inform(SolrCore core)
inform
in interface SolrCoreAware
public void init(NamedList args)
init
in interface NamedListInitializedPlugin
init
in class UpdateRequestProcessorFactory
args
- a NamedList with the configuration parameterspublic UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance
in class UpdateRequestProcessorFactory
public static void loadData() throws IOException, com.cybozu.labs.langdetect.LangDetectException
IOException
com.cybozu.labs.langdetect.LangDetectException