public class TemplateUpdateProcessorFactory extends SimpleUpdateProcessorFactory
The format of the parameter is <field-name>:<the-template-string>, for example:
Template.field=fname:${somefield}some_string${someotherfield}
Modifier and Type | Class and Description |
---|---|
static class |
TemplateUpdateProcessorFactory.Resolved |
UpdateRequestProcessorFactory.RunAlways
Modifier and Type | Field and Description |
---|---|
static Pattern |
PLACEHOLDER_PATTERN |
initArgs, myName
Constructor and Description |
---|
TemplateUpdateProcessorFactory() |
Modifier and Type | Method and Description |
---|---|
static TemplateUpdateProcessorFactory.Resolved |
getResolved(String template,
Cache<String,TemplateUpdateProcessorFactory.Resolved> cache) |
static List<String> |
getVariables(String template,
Cache<String,TemplateUpdateProcessorFactory.Resolved> cache)
Get a list of variables embedded in the template string.
|
protected void |
process(AddUpdateCommand cmd,
SolrQueryRequest req,
SolrQueryResponse rsp)
This object is reused across requests.
|
static String |
replaceTokens(String template,
Cache<String,TemplateUpdateProcessorFactory.Resolved> cache,
Function<String,Object> fun) |
getInstance, getParam, getParams, init
public static final Pattern PLACEHOLDER_PATTERN
protected void process(AddUpdateCommand cmd, SolrQueryRequest req, SolrQueryResponse rsp)
SimpleUpdateProcessorFactory
process
in class SimpleUpdateProcessorFactory
public static TemplateUpdateProcessorFactory.Resolved getResolved(String template, Cache<String,TemplateUpdateProcessorFactory.Resolved> cache)
public static List<String> getVariables(String template, Cache<String,TemplateUpdateProcessorFactory.Resolved> cache)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.