public class FieldNameMutatingUpdateProcessorFactory extends UpdateRequestProcessorFactory
In the FieldNameMutatingUpdateProcessorFactory configured below, fields names will be mutated if the name contains space. Use multiple instances of this processor for multiple replacements
<processor class="solr.FieldNameMutatingUpdateProcessorFactory"> <str name="pattern ">\s</str> <str name="replacement">_</str> </processor>
UpdateRequestProcessorFactory.RunAlways
Constructor and Description |
---|
FieldNameMutatingUpdateProcessorFactory() |
Modifier and Type | Method and Description |
---|---|
UpdateRequestProcessor |
getInstance(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
void |
init(NamedList args) |
public FieldNameMutatingUpdateProcessorFactory()
public UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance
in class UpdateRequestProcessorFactory
public void init(NamedList args)
init
in interface NamedListInitializedPlugin
init
in class UpdateRequestProcessorFactory
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.