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.SelectorParams
UpdateRequestProcessorFactory.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.
|
getDefaultSelector, getSelector, inform, parseSelectorExclusionParams, parseSelectorParams
public RemoveBlankFieldUpdateProcessorFactory()
public void init(NamedList args)
FieldMutatingUpdateProcessorFactory
init
in interface NamedListInitializedPlugin
init
in class FieldMutatingUpdateProcessorFactory
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance
in class UpdateRequestProcessorFactory
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.