public class CmsSolrCopyModifiedUpateProcessor extends org.apache.solr.update.processor.UpdateRequestProcessor
UpdateRequestProcessor that
CmsSolrCopyModifiedUpateProcessorFactory| Constructor and Description |
|---|
CmsSolrCopyModifiedUpateProcessor(java.lang.String source,
java.lang.String target,
java.util.regex.Pattern regex,
java.lang.String replacement,
org.apache.solr.update.processor.UpdateRequestProcessor nextProcessor)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processAdd(org.apache.solr.update.AddUpdateCommand cmd) |
public CmsSolrCopyModifiedUpateProcessor(@Nonnull java.lang.String source, @Nonnull java.lang.String target, @Nonnull java.util.regex.Pattern regex, @Nonnull java.lang.String replacement, org.apache.solr.update.processor.UpdateRequestProcessor nextProcessor)
source - the name of the source field (where the original value is read from).target - the name of the target field (where the modified value is written to).regex - the regex applied to the original value.replacement - the replacement for the matched parts in the original value.nextProcessor - the UpdateRequestProcessor to process next.public void processAdd(org.apache.solr.update.AddUpdateCommand cmd) throws java.io.IOException
processAdd in class org.apache.solr.update.processor.UpdateRequestProcessorjava.io.IOExceptionUpdateRequestProcessor.processAdd(org.apache.solr.update.AddUpdateCommand)