public final class RemoveBlankFieldUpdateProcessorFactory extends FieldMutatingUpdateProcessorFactory
By default this processor applies itself to all fields.
For example, with the configuration listed below, blank strings will be
removed from all fields except those whose name ends with
"_literal".
<processor class="solr.RemoveBlankFieldUpdateProcessorFactory">
<lst name="exclude">
<str name="fieldRegex">.*_literal</str>
</lst>
</processor>FieldMutatingUpdateProcessorFactory.SelectorParamsUpdateRequestProcessorFactory.RunAlways| Constructor and Description |
|---|
RemoveBlankFieldUpdateProcessorFactory() |
| Modifier and Type | Method and Description |
|---|---|
UpdateRequestProcessor |
getInstance(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
void |
init(NamedList args)
Handles common initialization related to source fields for
constructing the FieldNameSelector to be used.
|
getBooleanArg, getDefaultSelector, getSelector, inform, oneOrMany, parseSelectorExclusionParams, parseSelectorParamspublic RemoveBlankFieldUpdateProcessorFactory()
public void init(NamedList args)
FieldMutatingUpdateProcessorFactoryinit in interface NamedListInitializedPlugininit in class FieldMutatingUpdateProcessorFactorypublic UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance in class UpdateRequestProcessorFactoryCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.